generated MyFaces id's produce duplicates which throw exceptions in container, rendering existing apps unusable ---------------------------------------------------------------------------------------------------------------
Key: MYFACES-1550 URL: https://issues.apache.org/jira/browse/MYFACES-1550 Project: MyFaces Core Issue Type: Bug Affects Versions: 1.1.5 Environment: MyFaces 1.1.5, WindowsXP, Tomcat5.5.20 Reporter: Lisa Sanchez Priority: Blocker Fix For: 1.1.5 Pages that once worked (1.1.5) stopped working for some reason (within the past week). The issue seems to be with generated id's on components. You will see this where you load a page and then reload the same page through a hyperlink or rendering for the second time. There seems to be some correlation with the <f:facet tag. I have a page with a <t:dataTable and several columns that use the <f:facet> tag to provide the column header. The page loads just fine initially but if I reload, I get a blank screen and the following message in my Tomcat log file. If I remove the column header and the facet tag, I do not see the error. About a week ago there were no problems with this page so it is something new that has been introduced and should be fixed. --- Mar 1, 2007 2:29:16 PM com.sun.facelets.FaceletViewHandler handleRenderException SEVERE: Error Rendering View[/web/Summary.xhtml] java.lang.IllegalStateException: Client-id : _id32 is duplicated in the faces tr ee. Component : _id30:_id31:_id32, path: {Component-Path : [Class: javax.faces.c omponent.UIViewRoot,ViewId: /web/Summary.xhtml][Class: org.ap ache.myfaces.custom.document.Document,Id: _id12][Class: javax.faces.component.ht ml.HtmlForm,Id: _id30][Class: org.apache.myfaces.component.html.ext.HtmlDataTabl e,Id: _id31][Class: javax.faces.component.UIColumn,Id: _id32][Class: javax.faces .component.html.HtmlOutputText,Id: _id32]} at org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplic ateIds(JspStateManagerImpl.java:329) at org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplic ateIds(JspStateManagerImpl.java:341) at org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplic ateIds(JspStateManagerImpl.java:338) at org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplic ateIds(JspStateManagerImpl.java:338) at org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplic ateIds(JspStateManagerImpl.java:341) at org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplic ateIds(JspStateManagerImpl.java:341) at org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerialized View(JspStateManagerImpl.java:286) at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.jav a:601) at com.presence.util.bb.customjsf.PtViewHandler.renderView(PtViewHandler .java:107) at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderRes ponseExecutor.java:41) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java: 132) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:140) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:173) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.do FilterInternal(OpenSessionInViewFilter.java:173) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerR equestFilter.java:77) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:173) at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(Extensions Filter.java:190) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java :869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p rocessConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo int.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol lowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP ool.java:684) at java.lang.Thread.run(Thread.java:619) --- -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.