You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Sawan Vithlani <vi...@gmail.com> on 2006/12/19 03:15:10 UTC

Tree2: collapsing nodes

Hi,

What is the definitive way to collapse tree nodes programatically from your
backing bean?

I have a UITree object in my bean:

...
..
...
treeUI = new UITreeData();
treeUI.setValue( treeData.getRootNode());


And in my action method:

 public void collapseAllAction(ActionEvent event){
       treeUI.collapseAll();
       }

But this does not work.

I have also tried collapsing  via the TreeState object but  that does not
work either?
Is there any sample code on how to do this?

Thanks

Sawan