You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Dennis Byrne <de...@dbyrne.net> on 2005/11/25 21:51:29 UTC
1.0.9 -> 1.1.1 : tree2 node state
Using 1.0.9, the following maintains node state very well:
node state is preserved even after users leave the view and
come back. After moving to 1.1.1, this only happens when the
back button is pushed. Can anyone give me a high level idea
as to what has changed?
<t:tree2 showRootNode="false" id="tree"
value="#{officeTreeBacker.tree}" var="node"
varNodeToggler="t" clientSideToggle="false">
Dennis Byrne
Antwort: 1.0.9 -> 1.1.1 : tree2 node state
Posted by ma...@daimlerchrysler.com.
If you leave the view ... than you have a new view and the state of tree
is also a new one.
No other component (afaik) does maintain the state over several views. The
tree did save the state in 1.0.9 in the session ... that made it possible
to maintain the state. But this pollutes the session memory.
If you use the client-side toggle you can use preserveState=true instead
or if you use server-side toggle you can provide a session scoped
TreeModel (and return TreeState.isTransient() -> true). That way you can
maintain the state on your own.
dennis@dbyrne.net schrieb am 25.11.2005 21:51:29:
> Using 1.0.9, the following maintains node state very well:
> node state is preserved even after users leave the view and
> come back. After moving to 1.1.1, this only happens when the
> back button is pushed. Can anyone give me a high level idea
> as to what has changed?
>
> <t:tree2 showRootNode="false" id="tree"
> value="#{officeTreeBacker.tree}" var="node"
> varNodeToggler="t" clientSideToggle="false">
>
> Dennis Byrne