Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-2859

Replacing elements for ajax response changes element order

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.1, 2.0.2-SNAPSHOT
    • 2.0.2
    • JSR-314
    • None

    Description

      In my application processing the ajax response for a ajax request changes the order of the elements. I have an html input element with siblings in a div that is replaced with a script and the new input element in the ajax response. The problem is, that the new input element is inserted after the siblings of the original element thus reversing the order of the elements

      I think the problem is in the replaceElements function in _Dom.js. There, oldNode.nextSibling always returns null.

      I created a patch that solves this issue, but I am not sure if there are any side effects. Master of Ajax (Werner) please have a look.

      Attachments

        1. MYFACES-2859-test-webapp.zip
          44 kB
          Michael Kurz
        2. MYFACES-2859.patch
          1 kB
          Michael Kurz

        Activity

          People

            Unassigned Unassigned
            dr.gonzo Michael Kurz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: