20161227:164144.353 [main ] INFO org.jboss.modules - JBoss Modules version 1.3.7.Final-redhat-1
20161227:164144.555 [main ] INFO org.jboss.msc - JBoss MSC version 1.1.5.Final-redhat-1
20161227:164144.643 [MSC service thread 1-6] INFO org.jboss.as - JBAS015899: JBoss EAP 6.4.7.GA (AS 7.5.7.Final-redhat-3) starting
20161227:164146.008 [MSC service thread 1-6] INFO org.xnio - XNIO Version 3.0.15.GA-redhat-1
20161227:164146.013 [Controller Boot Thread] INFO org.jboss.as.server - JBAS015888: Creating http management service using socket-binding (management-http)
20161227:164146.016 [MSC service thread 1-6] INFO org.xnio.nio - XNIO NIO Implementation Version 3.0.15.GA-redhat-1
20161227:164146.059 [ServerService Thread Pool -- 37] INFO org.jboss.as.clustering.infinispan - JBAS010280: Activating Infinispan subsystem.
20161227:164146.062 [ServerService Thread Pool -- 50] INFO org.jboss.as.security - JBAS013371: Activating Security Subsystem
20161227:164146.072 [ServerService Thread Pool -- 54] INFO org.jboss.as.webservices - JBAS015537: Activating WebServices Extension
20161227:164146.114 [ServerService Thread Pool -- 43] INFO org.jboss.as.jsf - JBAS012615: Activated the following JSF Implementations: [main, 1.2]
20161227:164146.121 [MSC service thread 1-2] INFO org.jboss.as.security - JBAS013370: Current PicketBox version=4.1.2.Final-redhat-1
20161227:164146.129 [ServerService Thread Pool -- 32] INFO com.axatech.jet.infra.alcatraz.service.AlcatrazAdapterService - Attribute adapter-jndi-name is updated with java:global/alcatraz/ldap
20161227:164146.133 [ServerService Thread Pool -- 45] INFO org.jboss.as.naming - JBAS011800: Activating Naming Subsystem
20161227:164146.237 [MSC service thread 1-1] INFO org.jboss.as.naming - JBAS011802: Starting Naming Service
20161227:164146.239 [MSC service thread 1-1] INFO com.axatech.jet.infra.alcatraz.service.AlcatrazAdapterService - Registering MBean com.axatech.jet.infra.alcatraz:type=Adaptor,name=Alcatraz,protocol=Service for configuring subsystem service alcatraz-adapter-broker
20161227:164146.270 [MSC service thread 1-1] INFO com.axatech.jet.infra.alcatraz.service.AlcatrazAdapterService - alcatraz-adapter-broker service started succcessfully
20161227:164146.391 [MSC service thread 1-1] INFO org.jboss.as.mail.extension - JBAS015400: Bound mail session [java:jboss/mail/Default]
20161227:164146.438 [MSC service thread 1-1] INFO org.jboss.as.connector.logging - JBAS010408: Starting JCA Subsystem (IronJacamar 1.0.36.Final-redhat-1)
20161227:164146.471 [ServerService Thread Pool -- 31] WARN net.sf.ehcache.config.ConfigurationFactory - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/eplatform/jboss-platform/jboss/jboss-eap-6.4.7/modules/system/layers/base/com/axatech/jet/infra/alcatraz/ldap/adapter/main/ehcache-1.4.1.jar!/ehcache-failsafe.xml
20161227:164146.613 [MSC service thread 1-6] INFO org.jboss.remoting - JBoss Remoting version 3.3.7.Final-redhat-1
20161227:164146.778 [ServerService Thread Pool -- 31] INFO com.axatech.jet.infra.alcatraz.ldap.AlcatrazLdapAdapter - Data validity time is: 0 sec
20161227:164146.780 [ServerService Thread Pool -- 31] INFO com.axatech.jet.infra.alcatraz.ldap.service.AlcatrazLDAPAdapterAdd - alcatraz-ldap-adapter successfully initialized with properties <{alcatraz.ldap.providerurl=ldap://epldapdev1.ch.winterthur.com:389 ldap://epldapdev2.ch.winterthur.com:389;alcatraz.ldap.prefix=ou=alcatraz,o=winterthur,c=ch;java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory}>
20161227:164146.781 [MSC service thread 1-6] INFO com.axatech.jet.infra.alcatraz.ldap.AlcatrazLdapAdapter - Registering MBean jackpot.infra.alcatraz:type=Adaptor,name=Alcatraz,protocol=LDAP for configuring subsystem service alcatraz-ldap-adapter
20161227:164146.785 [MSC service thread 1-6] INFO com.axatech.jet.infra.alcatraz.ldap.AlcatrazLdapAdapter - alcatraz-ldap-adapter service started succcessfully
20161227:164146.803 [MSC service thread 1-2] INFO org.jboss.ws.common.management - JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.3.6.Final-redhat-1
20161227:164146.805 [MSC service thread 1-8] INFO org.jboss.as.server.deployment.scanner - JBAS015012: Started FileSystemDeploymentService for directory C:\eplatform\jboss-platform\jboss\jboss-eap-6.4.7\standalone\deployments
20161227:164146.815 [MSC service thread 1-1] INFO org.jboss.as.server.deployment - JBAS015876: Starting deployment of "jsfbug-jboss.war" (runtime-name: "jsfbug-jboss.war")
20161227:164146.846 [MSC service thread 1-5] INFO org.jboss.as.remoting - JBAS017100: Listening on 0.0.0.0:4447
20161227:164146.861 [MSC service thread 1-2] INFO org.apache.coyote.http11.Http11Protocol - JBWEB003001: Coyote HTTP/1.1 initializing on : http-0.0.0.0:8080
20161227:164146.866 [MSC service thread 1-2] INFO org.apache.coyote.http11.Http11Protocol - JBWEB003000: Coyote HTTP/1.1 starting on: http-0.0.0.0:8080
20161227:164147.062 [MSC service thread 1-4] INFO org.jboss.as.remoting - JBAS017100: Listening on 0.0.0.0:9999
20161227:164147.317 [ServerService Thread Pool -- 60] INFO org.jboss.web - JBAS018210: Register web context: /jsfbug-jboss
20161227:164147.352 [MSC service thread 1-3] INFO org.apache.coyote.http11.Http11Protocol - JBWEB003001: Coyote HTTP/1.1 initializing on : http-0.0.0.0:8443
20161227:164147.354 [MSC service thread 1-3] INFO org.apache.coyote.http11.Http11Protocol - JBWEB003000: Coyote HTTP/1.1 starting on: http-0.0.0.0:8443
20161227:164147.411 [ServerService Thread Pool -- 60] INFO javax.enterprise.resource.webcontainer.jsf.config - Initializing Mojarra 2.1.28.SP9 for context '/jsfbug-jboss'
20161227:164147.613 [ServerService Thread Pool -- 60] INFO org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 4.3.2.Final-redhat-3
20161227:164147.823 [ServerService Thread Pool -- 34] INFO org.jboss.as.server - JBAS015859: Deployed "jsfbug-jboss.war" (runtime-name : "jsfbug-jboss.war")
20161227:164147.843 [Controller Boot Thread] INFO org.jboss.as - JBAS015961: Http management interface listening on http://0.0.0.0:9990/management
20161227:164147.844 [Controller Boot Thread] INFO org.jboss.as - JBAS015951: Admin console listening on http://0.0.0.0:9990
20161227:164147.844 [Controller Boot Thread] INFO org.jboss.as - JBAS015874: JBoss EAP 6.4.7.GA (AS 7.5.7.Final-redhat-3) started in 3858ms - Started 239 of 274 services (58 services are lazy, passive or on-demand)
20161227:164154.104 [http-0.0.0.0:8080-2] SEVERE javax.enterprise.resource.webcontainer.jsf.application - JSF1007: Duplicate component ID j_idt5:j_idt19:input found in view.
20161227:164154.107 [http-0.0.0.0:8080-2] SEVERE javax.enterprise.resource.webcontainer.jsf.application - +id: j_id1
type: javax.faces.component.UIViewRoot@17c8687
+id: javax_faces_location_HEAD
type: com.sun.faces.component.ComponentResourceContainer@1c9d1d6
+id: j_id3
type: javax.faces.component.UIOutput@9a543b
+id: j_idt1
type:
+id: j_idt2
type: javax.faces.component.UIOutput@10c6b51
+id: j_idt3
type: javax.faces.component.html.HtmlBody@1380fd7
+id: j_idt4
type:
Bug description
Mojarra 2.1.x and 2.2.x is not able to handle the clicks on the radio button (which change the size of the iterating list) correctly. It results in a duplicate ID Error if the id of the composite component is fix .
If the id of the composite component is not fix, no bug results. Removing all fix ids on CC's is not a way we can go depending on valueChangeListeners which are provided on some more complex CC's in our application.
Btw: This example works in myfaces 2.1.x.
To reproduce the bug, click on the radio buttons. A refresh of the page will fix the component tree until the next request.
+id: j_idt5
type: javax.faces.component.html.HtmlForm@402ac7
+id: j_idt6
type:
Listsize of outer list #{bugController.list.size()}
+id: j_idt7
type:
Listsize of inner list #{baustein.size()}
+id: j_idt8
type: javax.faces.component.UINamingContainer@7e0f4c
+id: j_id5
type: javax.faces.component.UIPanel@159938
+id: j_idt9
type:
--BEGIN component #{cc.attrs.frage.techName}--
+id: j_idt10
type:
#{cc.attrs.frage.techName} is a radio selection value
+id: input
type: javax.faces.component.html.HtmlSelectOneRadio@9b2508
+id: j_idt11
type: javax.faces.component.UISelectItems@100c6fb
+id: j_idt12
type:
--END component--
+id: j_idt13
type: javax.faces.component.UINamingContainer@5bee1
+id: j_id5
type: javax.faces.component.UIPanel@35cb0e
+id: j_idt14
type:
--BEGIN component #{cc.attrs.frage.techName}--
+id: j_idt15
type:
#{cc.attrs.frage.techName} is a radio selection value
+id: input
type: javax.faces.component.html.HtmlSelectOneRadio@94329
+id: j_idt16
type: javax.faces.component.UISelectItems@1f78405
+id: j_idt17
type:
--END component--
+id: j_idt30
type: javax.faces.component.UINamingContainer@7d31ed
+id: j_id2
type: javax.faces.component.UIPanel@8fb51e
+id: j_idt20
type:
--BEGIN component #{cc.attrs.frage.techName}--
+id: j_idt31
type:
#{cc.attrs.frage.techName} is a text output
+id: j_idt23
type:
--END component--
+id: j_idt32
type: javax.faces.component.UINamingContainer@1bf4ca3
+id: j_id2
type: javax.faces.component.UIPanel@2672ba
+id: j_idt25
type:
--BEGIN component #{cc.attrs.frage.techName}--
+id: j_idt33
type:
#{cc.attrs.frage.techName} is a radio selection value
+id: input
type: javax.faces.component.html.HtmlSelectOneRadio@f6601c
+id: j_idt34
type: javax.faces.component.UISelectItems@15a0a2b
+id: j_idt28
type:
--END component--
+id: j_idt18
type:
Listsize of inner list #{baustein.size()}
+id: j_idt19
type: javax.faces.component.UINamingContainer@14c762b
+id: j_id5
type: javax.faces.component.UIPanel@88769b
+id: j_idt21
type:
#{cc.attrs.frage.techName} is a radio selection value
+id: input <===============
type: javax.faces.component.html.HtmlSelectOneRadio@14467d2
+id: j_idt22
type: javax.faces.component.UISelectItems@8d1ee6
+id: j_idt35
type:
--BEGIN component #{cc.attrs.frage.techName}--
+id: j_idt36
type:
#{cc.attrs.frage.techName} is a radio selection value
+id: input <===============
type: javax.faces.component.html.HtmlSelectOneRadio@1a14fce
+id: j_idt37
type: javax.faces.component.UISelectItems@dcd14f
+id: j_idt38
type:
--END component--
+id: j_idt24
type: javax.faces.component.UINamingContainer@dd993b
+id: j_id5
type: javax.faces.component.UIPanel@f858f1
+id: j_idt26
type:
#{cc.attrs.frage.techName} is a radio selection value
+id: input
type: javax.faces.component.html.HtmlSelectOneRadio@a80366
+id: j_idt27
type: javax.faces.component.UISelectItems@118e982
+id: j_idt39
type:
--BEGIN component #{cc.attrs.frage.techName}--
+id: j_idt40
type:
#{cc.attrs.frage.techName} is a radio selection value
+id: input
type: javax.faces.component.html.HtmlSelectOneRadio@18c1187
+id: j_idt41
type: javax.faces.component.UISelectItems@10be117
+id: j_idt42
type:
--END component--
+id: j_idt29
type:
20161227:164154.258 [http-0.0.0.0:8080-2] SEVERE javax.enterprise.resource.webcontainer.jsf.application - Error Rendering View[/index.xhtml]: java.lang.IllegalStateException: Komponenten-ID j_idt5:j_idt19:input wurde bereits in der Ansicht gefunden.
at com.sun.faces.util.Util.checkIdUniqueness(Util.java:879) [jsf-impl-2.1.28.SP9-redhat-1.jar:2.1.28.SP9-redhat-1]
at com.sun.faces.util.Util.checkIdUniqueness(Util.java:863) [jsf-impl-2.1.28.SP9-redhat-1.jar:2.1.28.SP9-redhat-1]
at com.sun.faces.util.Util.checkIdUniqueness(Util.java:863) [jsf-impl-2.1.28.SP9-redhat-1.jar:2.1.28.SP9-redhat-1]
at com.sun.faces.util.Util.checkIdUniqueness(Util.java:863) [jsf-impl-2.1.28.SP9-redhat-1.jar:2.1.28.SP9-redhat-1]
at com.sun.faces.util.Util.checkIdUniqueness(Util.java:863) [jsf-impl-2.1.28.SP9-redhat-1.jar:2.1.28.SP9-redhat-1]
at com.sun.faces.application.view.FaceletPartialStateManagementStrategy.saveView(FaceletPartialStateManagementStrategy.java:461) [jsf-impl-2.1.28.SP9-redhat-1.jar:2.1.28.SP9-redhat-1]
at com.sun.faces.application.StateManagerImpl.saveView(StateManagerImpl.java:89) [jsf-impl-2.1.28.SP9-redhat-1.jar:2.1.28.SP9-redhat-1]
at javax.faces.application.StateManager.getViewState(StateManager.java:552) [jboss-jsf-api_2.1_spec-2.1.28.SP1-redhat-1.jar:2.1.28.SP1-redhat-1]
at com.sun.faces.context.PartialViewContextImpl.renderState(PartialViewContextImpl.java:446) [jsf-impl-2.1.28.SP9-redhat-1.jar:2.1.28.SP9-redhat-1]
at com.sun.faces.context.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:305) [jsf-impl-2.1.28.SP9-redhat-1.jar:2.1.28.SP9-redhat-1]
at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:973) [jboss-jsf-api_2.1_spec-2.1.28.SP1-redhat-1.jar:2.1.28.SP1-redhat-1]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1819) [jboss-jsf-api_2.1_spec-2.1.28.SP1-redhat-1.jar:2.1.28.SP1-redhat-1]
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:421) [jsf-impl-2.1.28.SP9-redhat-1.jar:2.1.28.SP9-redhat-1]
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125) [jsf-impl-2.1.28.SP9-redhat-1.jar:2.1.28.SP9-redhat-1]
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120) [jsf-impl-2.1.28.SP9-redhat-1.jar:2.1.28.SP9-redhat-1]
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.1.28.SP9-redhat-1.jar:2.1.28.SP9-redhat-1]
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) [jsf-impl-2.1.28.SP9-redhat-1.jar:2.1.28.SP9-redhat-1]
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594) [jboss-jsf-api_2.1_spec-2.1.28.SP1-redhat-1.jar:2.1.28.SP1-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295) [jet-jboss-web-custom-eap-1.8.0.jar:1.8.0]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jet-jboss-web-custom-eap-1.8.0.jar:1.8.0]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231) [jet-jboss-web-custom-eap-1.8.0.jar:1.8.0]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jet-jboss-web-custom-eap-1.8.0.jar:1.8.0]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.5.7.Final-redhat-3.jar:7.5.7.Final-redhat-3]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:150) [jet-jboss-web-custom-eap-1.8.0.jar:1.8.0]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jet-jboss-web-custom-eap-1.8.0.jar:1.8.0]
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:559) [jet-jboss-web-custom-eap-1.8.0.jar:1.8.0]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jet-jboss-web-custom-eap-1.8.0.jar:1.8.0]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344) [jet-jboss-web-custom-eap-1.8.0.jar:1.8.0]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:854) [jet-jboss-web-custom-eap-1.8.0.jar:1.8.0]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [jet-jboss-web-custom-eap-1.8.0.jar:1.8.0]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926) [jet-jboss-web-custom-eap-1.8.0.jar:1.8.0]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_102]
20161227:164154.290 [http-0.0.0.0:8080-2] ERROR org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/jsfbug-jboss].[Faces Servlet] - JBWEB000236: Servlet.service() for servlet Faces Servlet threw exception: java.lang.IllegalStateException: CDATA tags may not nest
at com.sun.faces.renderkit.html_basic.HtmlResponseWriter.startCDATA(HtmlResponseWriter.java:667) [jsf-impl-2.1.28.SP9-redhat-1.jar:2.1.28.SP9-redhat-1]
at javax.faces.context.ResponseWriterWrapper.startCDATA(ResponseWriterWrapper.java:172) [jboss-jsf-api_2.1_spec-2.1.28.SP1-redhat-1.jar:2.1.28.SP1-redhat-1]
at javax.faces.context.PartialResponseWriter.startError(PartialResponseWriter.java:342) [jboss-jsf-api_2.1_spec-2.1.28.SP1-redhat-1.jar:2.1.28.SP1-redhat-1]
at com.sun.faces.context.AjaxExceptionHandlerImpl.handlePartialResponseError(AjaxExceptionHandlerImpl.java:202) [jsf-impl-2.1.28.SP9-redhat-1.jar:2.1.28.SP9-redhat-1]
at com.sun.faces.context.AjaxExceptionHandlerImpl.handle(AjaxExceptionHandlerImpl.java:126) [jsf-impl-2.1.28.SP9-redhat-1.jar:2.1.28.SP9-redhat-1]
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:119) [jsf-impl-2.1.28.SP9-redhat-1.jar:2.1.28.SP9-redhat-1]
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) [jsf-impl-2.1.28.SP9-redhat-1.jar:2.1.28.SP9-redhat-1]
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594) [jboss-jsf-api_2.1_spec-2.1.28.SP1-redhat-1.jar:2.1.28.SP1-redhat-1]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295) [jet-jboss-web-custom-eap-1.8.0.jar:1.8.0]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jet-jboss-web-custom-eap-1.8.0.jar:1.8.0]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231) [jet-jboss-web-custom-eap-1.8.0.jar:1.8.0]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jet-jboss-web-custom-eap-1.8.0.jar:1.8.0]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.5.7.Final-redhat-3.jar:7.5.7.Final-redhat-3]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:150) [jet-jboss-web-custom-eap-1.8.0.jar:1.8.0]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jet-jboss-web-custom-eap-1.8.0.jar:1.8.0]
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:559) [jet-jboss-web-custom-eap-1.8.0.jar:1.8.0]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jet-jboss-web-custom-eap-1.8.0.jar:1.8.0]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344) [jet-jboss-web-custom-eap-1.8.0.jar:1.8.0]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:854) [jet-jboss-web-custom-eap-1.8.0.jar:1.8.0]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [jet-jboss-web-custom-eap-1.8.0.jar:1.8.0]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926) [jet-jboss-web-custom-eap-1.8.0.jar:1.8.0]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_102]