I don't think that the browser cache is the problem - if the browser would cache the html of the tree then you would also get the old (administrator's) tree displayed. Imho the problem is a session bean containing your tree data. You should destroy all session data when a user logs out.

rosalba bochicchio wrote:
I've probably found the trouble.
I suppose it is a problem due to browser
caching...I'll try to explain it: my web app is a
management console.
It's made up of a menu, which is a tree, a fix header
and a content page. Whe I click on the nodes of the
tree I want the content page to change. I can log in
as "simple user" or Administrator. When I log in as
Administrator I can see, as a menu, a tree made up of
all the users of the console. Instead, when I log in
as a "simple user" I can see anly myself. The
behaviour is the following one: When I log in as
"simple user" and the as Administrator, everything
works fine. When I log in as Administrator and then as
"simple user", I get the problem I tried to describe
in the previous message...that is, when clicking on
the unique node of the tree I get the exception! I
suppose the reason is that the browser caches the tree
with the nodes related to all the user, and gets the
exception when the node is made up of a single
node...Do you think it's a possible reason? have you
any suggestion to solve the question?

Thanks,
Rosalba


--- "CONNER, BRENDAN (SBCSI)" <[EMAIL PROTECTED]> wrote:


Can you try with the latest release (1.1.1RC3)?

- Brendan

-----Original Message-----
From: rosalba bochicchio
[mailto:[EMAIL PROTECTED] Sent: Friday, October 21, 2005 5:02 AM
To: [email protected]
Subject: PROBLEMS WITH TREE2


I'm using myfaces 1.0.9. I have a problem with
tree2...when I click on one of the nodes, I want to
view a new page. But the click on the node generates
the following error:

java.lang.IllegalArgumentException: Node with id
0:1.
Failed to parse 0:1
        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.con

text.FacesContext;Ljavax.faces.component.UIComponent;)V(HtmlTreeRenderer

.java:104)
        at


javax.faces.component.UIComponentBase.decode(Ljavax.faces.context.FacesC

ontext;)V(UIComponentBase.java:305)
        at


org.apache.myfaces.custom.tree2.UITreeData.processDecodes(Ljavax.faces.c

ontext.FacesContext;)V(UITreeData.java:139)
        at


org.apache.myfaces.custom.tree2.HtmlTree.processDecodes(Ljavax.faces.con

text.FacesContext;)V(HtmlTree.java:91)
        at


javax.faces.component.UIComponentBase.processDecodes(Ljavax.faces.contex

t.FacesContext;)V(UIComponentBase.java:407)
        at


javax.faces.component.UIComponentBase.processDecodes(Ljavax.faces.contex

t.FacesContext;)V(UIComponentBase.java:407)
        at


javax.faces.component.UIViewRoot.processDecodes(Ljavax.faces.context.Fac

esContext;)V(UIViewRoot.java:151)
        at


org.apache.myfaces.lifecycle.LifecycleImpl.applyRequestValues(Ljavax.fac

es.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;Lj

avax.servlet.ServletResponse;)V(FacesServlet.java:109)

        at


weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()L

java.lang.Object;(ServletStubImpl.java:996)
        at


weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.S

ervletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.

FilterChainImpl;)V(ServletStubImpl.java:419)
        at


weblogic.servlet.internal.TailFilter.doFilter(Ljavax.servlet.ServletRequ

est;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V(TailFil

ter.java:28)
        at


weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax.servlet.Servle

tRequest;Ljavax.servlet.ServletResponse;)V(FilterChainImpl.java:27)

        at


org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(Ljavax.

servlet.ServletRequest;Ljavax.servlet.ServletResponse;Ljavax.servlet.Fil

terChain;)V(ExtensionsFilter.java:112)
        at


weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax.servlet.Servle

tRequest;Ljavax.servlet.ServletResponse;)V(FilterChainImpl.java:27)

        at


weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r

un()Ljava.lang.Object;(WebAppServletContext.java:6458)

        at


weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.secur

ity.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.

Object;(AuthenticatedSubject.java:321)
        at


weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.i

nternal.AuthenticatedSubject;Lweblogic.security.acl.internal.Authenticat

edSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityMa

nager.java:118)
        at


weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic.s

ervlet.internal.ServletRequestImpl;Lweblogic.servlet.internal.ServletRes

ponseImpl;)V(WebAppServletContext.java:3661)
        at


weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.Ex

ecuteThread;)V(ServletRequestImpl.java:2630)
        at


weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V

(ExecuteThread.java:219)
        at


weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178)

        at


java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown

Source

Anyone can help me?

Rosalba


                
__________________________________ Yahoo! FareChase: Search multiple travel sites in
one click.
http://farechase.yahoo.com





                
__________________________________ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs


Reply via email to