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

Duplicate component id with rich:dataTable on wildfly-8.2.0.Final

    Details

    • Steps to Reproduce:
      Hide
      • A page with a rich:dataTable is used to show a list of entities
        • the rich:dataTable utilizes the "binding" attribute
        • the rich:dataTable is embedded in a h:form (without that, you don't get an exception, but the columns in the table become duplicated)
        • the page is part of a long running conversation
      • On the first view of this page in a new conversation, everything works as expected.
      • If this page is then viewed a second time in the same conversation, an IllegalStateException due to duplicate component id is thrown
      Show
      A page with a rich:dataTable is used to show a list of entities the rich:dataTable utilizes the "binding" attribute the rich:dataTable is embedded in a h:form (without that, you don't get an exception, but the columns in the table become duplicated) the page is part of a long running conversation On the first view of this page in a new conversation, everything works as expected. If this page is then viewed a second time in the same conversation, an IllegalStateException due to duplicate component id is thrown

      Description

      If a rich:dataTable is used with the "binding" attribute in a page inside a long-running conversation, only the first view of the page works. On the next view inside the same conversation, an IllegalStateException is thrown, because the component tree of the page contains duplicates of all columns of the data table.

      If the "binding" attribute is omitted, or if the page is always viewed with a new conversation, the exception does not occur.

      With Wildfly-8.1.0.Final (Mojarra 2.2.6) the exception does not occur.

      With Wildfly-8.2.0.Final and Mojarra (jsf-impl) downgraded to 2.2.6 the exception does not occur.

      On the Wildfly forum thread one can find a (sort of) timeline how I discovered the bug and finally managed to write a small demo application which demonstrates the problem with a minimal set of JSF and RF components. I have attached the sources of the demo application to the wildfly forum thread.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ahaumer Andreas Haumer
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: