Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-472

JavaScript error when combining Tree with jQuery

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.0.1
    • Fix Version/s: 3.1.0
    • Component/s: None
    • Labels:
      None

      Description

      When including the jQuery (www.jquery.com) javascript library on a page where a Tree component is used, a javascript error occurs (even when using jQuery.noConflict()): "too much recursion".

      After some investigation the problem is tracked down to the json.js which is included in the richfaces distribution. This javascript attaches a function to every single Object, which is not a clever thing to do, according to the creator of jQuery (see http://groups.google.com/group/jquery-en/browse_thread/thread/149b79153ea80947/b923399c7190182e?lnk=gst&q=too+much+recursion&rnum=8#b923399c7190182e). The problem can be solved by replacing the json.js in the distribution by the version mentioned in the thread: http://john.jquery.com/jquery/build/js/json.js

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jalupa Guy Veraghtert
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: