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

Duplicate id in subview

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.1
    • 1.1.2
    • General
    • None
    • Windows XP, Browser IE, Mozilla, Tomcat 5.0.28

    Description

      We use tiles and the myfaces integration.
      But we get an exception:
      javax.faces.FacesException: cannot add component with id '_id13' and path :

      {Component-Path : [Class: javax.faces.component.html.HtmlPanelGrid,Id: _id13]}

      to its parent component. This might be a problem due to duplicate ids.
      at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:401)
      at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:219)

      I think the problem is that the id is generated after the JspStateManagerImp.restoreTreeStructure is called. But inside the view there is still the id above.

      A possible solution is to restore the field _uniqueIdCounter of the class UIViewRoot to make correct counting...

      Attachments

        1. MYFACES-857.patch
          2 kB
          Paul Klaer

        Activity

          People

            mmarinschek Martin Marinschek
            jmelzer Juergen Melzer
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: