myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Marinschek (JIRA)" <>
Subject [jira] Commented: (MYFACES-857) Duplicate id in subview
Date Fri, 23 Dec 2005 07:42:34 GMT
    [ ] 

Martin Marinschek commented on MYFACES-857:

J├╝rgen, as far as I can see, you were absolutely right.

That would mean that in MyFaces you couldn't create dynamic components on the second postback.
Pretty Heavy bug!

Thanks for evaluating this - I just committed the fix.



> Duplicate id in subview
> -----------------------
>          Key: MYFACES-857
>          URL:
>      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
>  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(
> at javax.faces.webapp.UIComponentTag.doStartTag(
> 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:
For more information on JIRA, see:

View raw message