[ 
http://issues.apache.org/jira/browse/MYFACES-760?page=comments#action_12356427 
] 

Jon Travis commented on MYFACES-760:
------------------------------------

Andrew,

If you also adjust the TreeState to set that the node is not expanded, then 
you'll be fine.  
We have to manually adjust our treestate when we make changes to nodes 
leaf/nonleaf
status.

-- Jon


> Tree2 setLeaf(false) error
> --------------------------
>
>          Key: MYFACES-760
>          URL: http://issues.apache.org/jira/browse/MYFACES-760
>      Project: MyFaces
>         Type: Bug
>   Components: Tomahawk
>     Versions: 1.1.0
>  Environment: Tested in JBoss 4.0.3 with Seam
>     Reporter: Andrew Efremov
>     Assignee: sean schofield
>     Priority: Blocker

>
> when trying to add nodes to tree2 
> TreeNodeBase tree = new TreeNodeBase("document", node.getName(), 
> node.getId().toString(), false);
> result node have tree.isLeaf() == true;
> the same is when you trying explicitly set Leaf 
> tree.setLeaf(false);
> result node have tree.isLeaf() == true;

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to