Hi William,

Thank you very much!!! Your codes are very great. I will try it out.

Have a great weekend!!!

Gus


William Huang-2 wrote:
> 
> sure if your facelet code looks like this
> <t:tree2 value="#{treeBean.treeModel}" ..>
> ..
> </t:tree2>
> 
> your bean code
> 
> public class TreeBean {
>   private TreeModel treeModel;
>   private String[] expandedNodes;
> 
>   //you need to populate the expandedNodes string array
>   ...
>   pulic TreeModel getTreeModel() {
>     TreeState treeState = new TreeStateBase();
>     treeState.setTransient(true);
>     treeState.expandPath(expandedNodes);
>     return treeModel
>   }
> 
> }
> 
> William Huang
> Product Development Team
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-save-tree2-state-tf2127303.html#a5874815
Sent from the MyFaces - Users forum at Nabble.com.

Reply via email to