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

IllegalStateException if nested composite components are used

    Details

    • Steps to Reproduce:
      Hide

      I posted into the forum:
      http://community.jboss.org/message/614819#614819

      Find attached a WAR file and the exception stack trace in the comment from 13.07.2011 03:37.
      Copy the WAR into tomcat's webapp folder. Restart tomcat.
      Start http://localhost:8080/testWebApp/index.xhtml

      This is running with RichFaces 4.0.0-FINAL.
      I also tried 4.1.0-SNAPSHOT (as of 9.july 2011) without success.

      Show
      I posted into the forum: http://community.jboss.org/message/614819#614819 Find attached a WAR file and the exception stack trace in the comment from 13.07.2011 03:37. Copy the WAR into tomcat's webapp folder. Restart tomcat. Start http://localhost:8080/testWebApp/index.xhtml This is running with RichFaces 4.0.0-FINAL. I also tried 4.1.0-SNAPSHOT (as of 9.july 2011) without success.

      Description

      A simple <div> inside a nested composite component is converted into a JSF element. RichFaces ist not able to generate unique ID's for these elements.

      So this exception does occur:

      javax.servlet.ServletException: Komponenten-ID j_idt6:j_idt8:j_idt10 wurde bereits in der Ansicht gefunden.
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:606)
      root cause
      java.lang.IllegalStateException: Komponenten-ID j_idt6:j_idt8:j_idt10 wurde bereits in der Ansicht gefunden.
      com.sun.faces.util.Util.checkIdUniqueness(Util.java:821)

      This is german and means that the component-ID is already found in the view.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tommy.a Thomas Amrhein (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: