You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "Christopher J. Bowerman" <bo...@dtpax2.ncifcrf.gov> on 2006/05/23 16:15:45 UTC

Tree state

Have not heard a response so I thought I'd try again.

 

I'm using the tree2 component and have an "home" option where the user
starts the application from the beginning which builds a new tree.  When the
new tree is built it seems to remember the state of the old tree leaving
which ever nodes were expanded open in the new tree as well.  I need the new
tree to always start in a collapsed state.  Does anybody have suggestions on
how this works?

 

Thanks.

 

==================================

Christopher J. Bowerman

Internet Applications Developer

SAIC-Frederick

phone: 301.846.5275

email: christopher.j.bowerman@saic.com

 

 

 


Re: Tree state

Posted by Andrew Robinson <an...@gmail.com>.
...
private TreeModelBase treeModel = new TreeModelBase();
...
public void clearTreeState(ActionEvent evt)
{
   treeModel.setTreeState(new TreeStateBase());
}

-Andrew

On 5/23/06, Christopher J. Bowerman <bo...@dtpax2.ncifcrf.gov> wrote:
>
>
>
>
> Have not heard a response so I thought I'd try again.
>
>
>
> I'm using the tree2 component and have an "home" option where the user
> starts the application from the beginning which builds a new tree.  When the
> new tree is built it seems to remember the state of the old tree leaving
> which ever nodes were expanded open in the new tree as well.  I need the new
> tree to always start in a collapsed state.  Does anybody have suggestions on
> how this works?
>
>
>
> Thanks.
>
>
>
> ==================================
>
> Christopher J. Bowerman
>
> Internet Applications Developer
>
> SAIC-Frederick
>
> phone: 301.846.5275
>
> email: christopher.j.bowerman@saic.com
>
>
>
>
>
>