You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Yixing Ma <yi...@interfacemgmt.net> on 2006/01/24 20:00:10 UTC
tree2 clientSideToggle question
Hi,
I have a quick question about tree2 component.
I set the clientSideToggle="true"
After I changed the data of the tree in a method, and reload the tree I got a
ERROR [http-8080-Processor24] - Node with id 0:0. Failed to parse 0:0
java.lang.IllegalArgumentException: Node with id 0:0. Failed to parse 0:0
at org.apache.myfaces.custom.tree2.TreeModel.getNodeById(TreeModel.java:153)
at org.apache.myfaces.custom.tree2.TreeModel.setNodeId(TreeModel.java:71)
at org.apache.myfaces.custom.tree2.UITreeData.setNodeId(UITreeData.java:290)
at org.apache.myfaces.custom.tree2.HtmlTree.setNodeId(HtmlTree.java:80)
at org.apache.myfaces.custom.tree2.HtmlTreeRenderer.decode(HtmlTreeRenderer.java:104)
at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:305)
at org.apache.myfaces.custom.tree2.UITreeData.processDecodes(UITreeData.java:139)
at org.apache.myfaces.custom.tree2.HtmlTree.processDecodes(HtmlTree.java:91)
at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:407)
at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:407)
at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:151)
at org.apache.myfaces.lifecycle.LifecycleImpl.applyRequestValues(LifecycleImpl.java:177)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:87)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:112)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
How can I slove this problem?
If I set clientSideToggle="false", no problem. But I really want to use clientSideToggle="true", coz it's way faster.