Thanks for your suggestion Marius,
I'll try that and let you know.
Rosalba
--- Marius Kreis <[EMAIL PROTECTED]> wrote:
> You should use the latest myfaces version, some bugs
> of tree2 have been
> fixed there - probably yours, too.
> In my projects nodes are deleted aswell and no error
> like yours occured
> so far - just the good ol' Illegal State
> exception...
>
> rosalba bochicchio schrieb:
>
> >Do you think I can solve the problem using a
> >server-side tree instead of the clied-side one?
> >
> >--- rosalba bochicchio <[EMAIL PROTECTED]>
> wrote:
> >
> >
> >
> >>Hi all,
> >>I'm facing a problem related to tree2 component in
> >>myfaces 1.0.9 when deleting a node of the tree.
> >>
> >>The problem is the following one: if I delete a
> node
> >>(which can be a leaf or not) of the tree and then
> >>reload the page, the updated tree is correctly
> >>displayed but if I try to expand one of its nodes
> I
> >>get the following exception:
> >>
> >>java.lang.IllegalArgumentException: Node with id
> >>0:3.
> >>Failed to parse 0:3
> >> at
> >>
> >>
> >>
>
>org.apache.myfaces.custom.tree2.TreeModel.getNodeById(Ljava.lang.String;)Lorg.apache.myfaces.custom.tree2.TreeNode;(TreeModel.java:153)
> >
> >
> >> at
> >>
> >>
> >>
>
>org.apache.myfaces.custom.tree2.TreeModel.setNodeId(Ljava.lang.String;)V(TreeModel.java:71)
> >
> >
> >> at
> >>
> >>
> >>
>
>org.apache.myfaces.custom.tree2.UITreeData.setNodeId(Ljava.lang.String;)V(UITreeData.java:290)
> >
> >
> >> at
> >>
> >>
> >>
>
>org.apache.myfaces.custom.tree2.HtmlTree.setNodeId(Ljava.lang.String;)V(HtmlTree.java:80)
> >
> >
> >> at
> >>
> >>
> >>
>
>org.apache.myfaces.custom.tree2.HtmlTreeRenderer.decode(Ljavax.faces.context.FacesContext;Ljavax.faces.component.UIComponent;)V(HtmlTreeRenderer.java:104)
> >
> >
> >> at
> >>
> >>
> >>
>
>javax.faces.component.UIComponentBase.decode(Ljavax.faces.context.FacesContext;)V(UIComponentBase.java:305)
> >
> >
> >> at
> >>
> >>
> >>
>
>org.apache.myfaces.custom.tree2.UITreeData.processDecodes(Ljavax.faces.context.FacesContext;)V(UITreeData.java:139)
> >
> >
> >> at
> >>
> >>
> >>
>
>org.apache.myfaces.custom.tree2.HtmlTree.processDecodes(Ljavax.faces.context.FacesContext;)V(HtmlTree.java:91)
> >
> >
> >> at
> >>
> >>
> >>
>
>javax.faces.component.UIComponentBase.processDecodes(Ljavax.faces.context.FacesContext;)V(UIComponentBase.java:407)
> >
> >
> >> at
> >>
> >>
> >>
>
>javax.faces.component.UIComponentBase.processDecodes(Ljavax.faces.context.FacesContext;)V(UIComponentBase.java:407)
> >
> >
> >> at
> >>
> >>
> >>
>
>javax.faces.component.UIViewRoot.processDecodes(Ljavax.faces.context.FacesContext;)V(UIViewRoot.java:151)
> >
> >
> >> at
> >>
> >>
> >>
>
>org.apache.myfaces.lifecycle.LifecycleImpl.applyRequestValues(Ljavax.faces.context.FacesContext;)Z(LifecycleImpl.java:177)
> >
> >
> >> at
> >>
> >>
> >>
>
>org.apache.myfaces.lifecycle.LifecycleImpl.execute(Ljavax.faces.context.FacesContext;)V(LifecycleImpl.java:87)
> >
> >
> >> at
> >>
> >>
> >>
>
>javax.faces.webapp.FacesServlet.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(FacesServlet.java:109)
> >
> >
> >> at
> >>
> >>
> >>
>
>weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(ServletStubImpl.java:996)
> >
> >
> >> at
> >>
> >>
> >>
>
>weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:419)
> >
> >
> >> at
> >>
> >>
> >>
>
>weblogic.servlet.internal.TailFilter.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V(TailFilter.java:28)
> >
> >
> >> at
> >>
> >>
> >>
>
>weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(FilterChainImpl.java:27)
> >
> >
> >> at
> >>
> >>
> >>
>
>org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V(ExtensionsFilter.java:112)
> >
> >
> >> at
> >>
> >>
> >>
>
>weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(FilterChainImpl.java:27)
> >
> >
> >> at
> >>
> >>
> >>
>
>weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava.lang.Object;(WebAppServletContext.java:6458)
> >
> >
> >> at
> >>
> >>
> >>
>
>weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(AuthenticatedSubject.java:321)
> >
> >
> >> at
> >>
> >>
> >>
>
>weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityManager.java:118)
> >
> >
> >> at
> >>
> >>
> >>
>
>weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic.servlet.internal.ServletRequestImpl;Lweblogic.servlet.internal.ServletResponseImpl;)V(WebAppServletContext.java:3661)
> >
> >
>
=== message truncated ===
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com