You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Volker Weber (JIRA)" <de...@myfaces.apache.org> on 2006/11/29 15:26:41 UTC

[jira] Resolved: (TOBAGO-197) treestate setting marker was not able to display on the selectable leafs and expand the entire leafs node

     [ http://issues.apache.org/jira/browse/TOBAGO-197?page=all ]

Volker Weber resolved TOBAGO-197.
---------------------------------

    Resolution: Fixed

> treestate setting marker was not able to display on the selectable leafs and expand the entire leafs node
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: TOBAGO-197
>                 URL: http://issues.apache.org/jira/browse/TOBAGO-197
>             Project: MyFaces Tobago
>          Issue Type: Bug
>    Affects Versions: 1.0.8
>         Environment: JBoss 4.4
> JDK 1.5
>            Reporter: Sam Wong
>         Assigned To: Volker Weber
>             Fix For: 1.0.9
>
>         Attachments: marker.JPG
>
>
> I would like to display what the user has selected from the tree leafs when the user has saved the tree leafs onto the database and retrieve it back
> from your examples on TobagoDemoController.java
> tree = new DefaultMutableTreeNode(
>         new Node("Root Node", "root"));
>     tree.insert(new DefaultMutableTreeNode(new Node("Sports", "sports")), 0);
>     tree.insert(new DefaultMutableTreeNode(new Node("Movies", "movies")), 0);
>     DefaultMutableTreeNode music = new DefaultMutableTreeNode(
>         new Node("Music", "music"));
>     tree.insert(music, 0);
>     tree.insert(new DefaultMutableTreeNode(new Node("Games", "games")), 0);
>     MutableTreeNode temp = new DefaultMutableTreeNode(
>         new Node("Science", "science"));
>     temp.insert(
>         new DefaultMutableTreeNode(new Node("Geography", "geography")), 0);
>     temp.insert(
>         new DefaultMutableTreeNode(new Node("Mathematics", "math")), 0);
>     DefaultMutableTreeNode temp2 = new DefaultMutableTreeNode(
>         new Node("Astronomy", "astro"));
>     temp2.insert(new DefaultMutableTreeNode(new Node("Education", "edu")), 0);
>     temp2.insert(new DefaultMutableTreeNode(new Node("Pictures", "pic")), 0);
>     temp.insert(temp2, 2);
>     tree.insert(temp, 2);
>     treeState = new TreeState();
>     treeState.addExpandState(tree);
>    
>     treeState.addSelection(temp2);
>     treeState.setMarker(music);
>     
> For examples
> Where I set the " treeState.setMarker(temp2)"; When I expand the tree, I did not see the node leaf was being check?
> Also is there a way to expand a complete leafs node by default??
> Thanks.

-- 
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