This content has been marked as final.
Show 2 replies
-
1. Re: Expand All or Collapse All for the Tree
eicki May 12, 2008 11:43 AM (in response to chong2000)You can expand/collapse node from code, see
http://wiki.jboss.org/wiki/ExpandCollapseTreeNodes -
2. Re: Expand All or Collapse All for the Tree
sri_hari May 13, 2008 7:53 AM (in response to chong2000)UI Code:
<h:commandButton value="Collapse All" action="#{sampleBean.collapseAll}"/>
<h:commandButton value="Expand All" action="#{sampleBean.expandAll}"/>
sampleBean
----------------
public UITree treeBindingVariable; // bind this variable to the tree
public void expandAll()
{
treeBindingVariable.queueExpandAll();
}
public void collapseAll()
{
treeBindingVariable.queueCollapseAll();
}