facelets
  1. facelets
  2. FACELETS-353

duplicate id with c:forEach when child IDs are manually set

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 1.1.14
    • Fix Version/s: 1.1.15
    • Component/s: impl
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      353

      Description

      If you have a simple c:forEach loop, and it's children have manually set ids,
      adding one line will ignore the new manually set id, and will duplicate the
      previous id on the list, giving a duplicate id error.

      1. proposedPatch-20090714.diff
        0.7 kB
        josefreire
      2. proposedPatch-20090820.diff
        3 kB
        josefreire
      3. proposedPatch-353-20091229.diff
        1 kB
        josefreire
      4. ShowBugForEach.java
        0.9 kB
        josefreire
      5. showBugForEach.xhtml
        0.9 kB
        josefreire

        Activity

        Hide
        josefreire added a comment -

        Sorry:
        If you add a new line in the beginning of the list, you get duplicate ids.

        Show
        josefreire added a comment - Sorry: If you add a new line in the beginning of the list, you get duplicate ids.
        Hide
        josefreire added a comment -

        Created an attachment (id=138)
        Show bug in action (xhtml)

        Show
        josefreire added a comment - Created an attachment (id=138) Show bug in action (xhtml)
        Hide
        josefreire added a comment -

        Created an attachment (id=139)
        Show bug in action (managed bean)

        Show
        josefreire added a comment - Created an attachment (id=139) Show bug in action (managed bean)
        Hide
        josefreire added a comment -

        Created an attachment (id=140)
        Proposed patch

        Show
        josefreire added a comment - Created an attachment (id=140) Proposed patch
        Hide
        josefreire added a comment -

        Created an attachment (id=142)
        Proposed patch

        Show
        josefreire added a comment - Created an attachment (id=142) Proposed patch
        Hide
        josefreire added a comment -

        Created an attachment (id=145)
        Proposed patch (doesn't break state saving inside a forEach)

        Show
        josefreire added a comment - Created an attachment (id=145) Proposed patch (doesn't break state saving inside a forEach)

          People

          • Assignee:
            Unassigned
            Reporter:
            josefreire
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: