voyent
Duplicate component ID  XML
Forum Index -> General Help
Author Message
lelouvenice

Joined: 29/Jan/2019 14:04:51
Messages: 2
Offline


Hi,
This problem occured when i tried to migrate icefaces 3.3 to 4.0.

Code:
Severe:   Error Rendering View[/DispatchingOrders.xhtml]
 java.lang.IllegalStateException: Component ID mainForm:mealOrderDataTable:j_idt74 has already been found in the view.  
 	at com.sun.faces.util.Util.checkIdUniqueness(Util.java:987)
 	at com.sun.faces.util.Util.checkIdUniqueness(Util.java:971)
 	at com.sun.faces.util.Util.checkIdUniqueness(Util.java:971)
 	at com.sun.faces.util.Util.checkIdUniqueness(Util.java:971)
 	at com.sun.faces.util.Util.checkIdUniqueness(Util.java:971)
 	at com.sun.faces.util.Util.checkIdUniqueness(Util.java:971)
 	at com.sun.faces.application.view.FaceletPartialStateManagementStrategy.saveView(FaceletPartialStateManagementStrategy.java:461)
 	at com.sun.faces.application.StateManagerImpl.saveView(StateManagerImpl.java:89)
 	at javax.faces.application.StateManager.getViewState(StateManager.java:593)
 	at org.icefaces.impl.context.DOMPartialViewContext.renderState(DOMPartialViewContext.java:741)
 	at org.icefaces.impl.context.DOMPartialViewContext.processPartial(DOMPartialViewContext.java:301)
 	at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:1004)
 	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856)
 	at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:430)
 	at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:133)
 	at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)
 	at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
 	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
 	at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219)
 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:647)
 	at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:344)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
 	at cz.csa.crml.ui.UaCompatibleFilter.doFilter(UaCompatibleFilter.java:73)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
 	at cz.csa.crml.aad.BasicFilter.doFilter(BasicFilter.java:115)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:316)
 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
 	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
 	at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
 	at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:415)
 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:282)
 	at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459)
 	at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)
 	at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:201)
 	at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:175)
 	at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235)
 	at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
 	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284)
 	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)
 	at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133)
 	at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
 	at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
 	at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:561)
 	at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
 	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
 	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
 	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
 	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565)
 	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)
 	at java.lang.Thread.run(Thread.java:748)


Can someone tell me the solution for this? Apparently when i change javax.faces.PARTIAL_STATE_SAVING to false, the error won't show but my table doesn't update dynamically. I have these old settings in the web.xml.
Code:
<context-param>
         <param-name>com.icesoft.faces.standardRequestScope</param-name>
         
         <param-value>true</param-value>
      
     </context-param>
     <context-param>
         <param-name>com.icesoft.faces.concurrentDOMViews</param-name>
         <param-value>false</param-value>
     </context-param>
     <context-param>
         <param-name>com.icesoft.faces.synchronousUpdate</param-name>
         
         <param-value>false</param-value>
         
     </context-param>
     <context-param>
         <param-name>com.icesoft.faces.connectionTimeout</param-name>
         <param-value>600000</param-value>
     </context-param>
     <context-param>
         <param-name>com.icesoft.faces.debugDOMUpdate</param-name>
         <param-value>false</param-value>
     </context-param>
     <context-param>
         <param-name>com.icesoft.faces.uploadDirectory</param-name>
         <param-value>upload</param-value>
     </context-param>
     <context-param>
         <param-name>com.icesoft.faces.uploadMaxFileSize</param-name>
         <param-value>4048576</param-value>
     </context-param> 

Now that iceface components are deprecated, i need to remove these settings too. Are they the cause of the problem? If it is please teach me the workaround. Thanks!
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team