javaserverfaces
  1. javaserverfaces
  2. JAVASERVERFACES-2636

Regression in 2.1.15: duplicate ID on ajax postbacks within ui:repeat

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.1.15, 2.1.16, 2.1.17
    • Fix Version/s: 2.1.24, 2.2.1
    • Component/s: None
    • Labels:
      None
    • Environment:

      jsf/mojarra 2.1.15 (on tomcat 7)

      Description

      See the snippet. Clicking on the links leads to a 'duplicate id' exception. This happens using mojarra 2.1.15, but it works fine with 2.1.14.
      Steps:
      The snippet shows two links.

      • click the first link
      • click the second link
      • click the first link again
        expected: everything is fine (as it is with 2.1.14)
        actual: error (below)

      11.12.2012 11:12:06 com.sun.faces.util.Util checkIdUniqueness
      SCHWERWIEGEND: JSF1007: Doppelte Komponenten-ID topform:j_idt6 in Ansicht gefunden.
      11.12.2012 11:12:06 com.sun.faces.util.Util checkIdUniqueness
      SCHWERWIEGEND: +id: j_id1
      type: javax.faces.component.UIViewRoot@123e1d25
      +id: javax_faces_location_HEAD
      type: com.sun.faces.component.ComponentResourceContainer@1e01d652
      +id: j_id2
      type: javax.faces.component.UIOutput@a9db0e2
      +id: j_idt1
      type: javax.faces.component.UIOutput@2beb717e
      +id: j_idt2
      type: javax.faces.component.UIOutput@6e681db8
      +id: j_idt3
      type: javax.faces.component.UIOutput@757753a8
      +id: j_idt4
      type: javax.faces.component.UIOutput@1c2d5534
      +id: topform
      type: javax.faces.component.html.HtmlForm@6434d75f
      +id: j_idt6
      type: com.sun.faces.facelets.component.UIRepeat@76c7cadf
      +id: j_idt7
      type: javax.faces.component.html.HtmlCommandLink@36d83365
      +id: j_idt6
      type: com.sun.faces.facelets.component.UIRepeat@2c164804
      +id: j_idt7
      type: javax.faces.component.html.HtmlCommandLink@6ad21538
      +id: j_idt5
      type:
      <h1>Main File</h1>

      +id: j_idt6
      type: com.sun.faces.facelets.component.UIRepeat@4927d15e
      +id: j_idt7
      type: javax.faces.component.html.HtmlCommandLink@552297d7
      +id: content
      type: javax.faces.component.html.HtmlPanelGroup@521ecfeb
      +id: j_idt8
      type: com.sun.faces.facelets.component.UIRepeat@64e4776b
      +id: j_idt9
      type: javax.faces.component.html.HtmlCommandLink@535c458c

        Issue Links

          Activity

          Hide
          rogerk added a comment -

          This fails in Full State Saving mode.
          A render target of @all in the page works.

          Show
          rogerk added a comment - This fails in Full State Saving mode. A render target of @all in the page works.
          Hide
          rogerk added a comment -

          It appears the the fix for https://java.net/jira/browse/JAVASERVERFACES-1817 (introduced in 2.1.15) has caused this regression.

          Show
          rogerk added a comment - It appears the the fix for https://java.net/jira/browse/JAVASERVERFACES-1817 (introduced in 2.1.15) has caused this regression.
          Hide
          rogerk added a comment -

          Changes.

          Show
          rogerk added a comment - Changes.
          Hide
          rogerk added a comment -

          Committed to MOJARRA_2_2X_ROLLING branch:
          Sending jsf-ri/src/main/java/com/sun/faces/facelets/component/UIRepeat.java
          Sending test/agnostic/ajax/src/main/webapp/issue2636.xhtml
          Sending test/agnostic/ajax/src/test/java/com/sun/faces/test/agnostic/ajax/Issue2636IT.java
          Transmitting file data ...
          Committed revision 12018.

          Committed to MOJARRA_2_1X_ROLLING branch:
          Sending jsf-ri/src/main/java/com/sun/faces/facelets/component/UIRepeat.java
          Sending test/agnostic/ajax/src/main/webapp/issue2636.xhtml
          Sending test/agnostic/ajax/src/test/java/com/sun/faces/test/agnostic/ajax/Issue2636IT.java
          Transmitting file data ...
          Committed revision 12017.

          Show
          rogerk added a comment - Committed to MOJARRA_2_2X_ROLLING branch: Sending jsf-ri/src/main/java/com/sun/faces/facelets/component/UIRepeat.java Sending test/agnostic/ajax/src/main/webapp/issue2636.xhtml Sending test/agnostic/ajax/src/test/java/com/sun/faces/test/agnostic/ajax/Issue2636IT.java Transmitting file data ... Committed revision 12018. Committed to MOJARRA_2_1X_ROLLING branch: Sending jsf-ri/src/main/java/com/sun/faces/facelets/component/UIRepeat.java Sending test/agnostic/ajax/src/main/webapp/issue2636.xhtml Sending test/agnostic/ajax/src/test/java/com/sun/faces/test/agnostic/ajax/Issue2636IT.java Transmitting file data ... Committed revision 12017.
          Hide
          rogerk added a comment -

          Committed.

          Show
          rogerk added a comment - Committed.

            People

            • Assignee:
              rogerk
              Reporter:
              Marcel_SA
            • Votes:
              11 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: