You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Martin Marinschek (JIRA)" <de...@myfaces.apache.org> on 2006/01/31 17:50:35 UTC

[jira] Commented: (MYFACES-857) Duplicate id in subview

    [ http://issues.apache.org/jira/browse/MYFACES-857?page=comments#action_12364639 ] 

Martin Marinschek commented on MYFACES-857:
-------------------------------------------

I think I should have solved pretty much all issues with duplicate ids now by introducing two separate id-counters: one for JSP-elements (which doesn't save it's state between requests, and so starts anew everytime the JSP is parsed) and one for dynamically created elements. 

This should work well now.

regards,

Martin

> Duplicate id in subview
> -----------------------
>
>          Key: MYFACES-857
>          URL: http://issues.apache.org/jira/browse/MYFACES-857
>      Project: MyFaces
>         Type: Bug
>   Components: Implementation
>     Versions: 1.1.1
>  Environment: Windows XP, Browser IE, Mozilla, Tomcat 5.0.28
>     Reporter: Juergen Melzer
>     Assignee: Martin Marinschek
>      Fix For: Nightly
>  Attachments: MYFACES-857.patch
>
> 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...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira