You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Sam Wong (JIRA)" <de...@myfaces.apache.org> on 2006/11/23 13:44:02 UTC

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

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
         Environment: JBoss 4.4
JDK 1.5
            Reporter: Sam Wong


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

        

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

Posted by "Volker Weber (JIRA)" <de...@myfaces.apache.org>.
     [ 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

        

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

Posted by "Volker Weber (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOBAGO-197?page=comments#action_12452340 ] 
            
Volker Weber commented on TOBAGO-197:
-------------------------------------

Have you tryed with Mozilla/Firefox or IE? 
I found a problem with the marker in IE today, IE ignores the backgroundColor 'lightgray' which is used for the marker.
Also the display of the marker did not update when click on it. 

I have already fixed this on my local machine (at work), i hope i find tomorow the time to recheck and commit this fix. 



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

        

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

Posted by "Volker Weber (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOBAGO-197?page=comments#action_12452446 ] 
            
Volker Weber commented on TOBAGO-197:
-------------------------------------

treeState has a method expand(DefaultMutableTreeNode node, int level)

use it like this (in about example):

  treeState.expand(tree, tree.getDepth()); 

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

        

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

Posted by "Sam Wong (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOBAGO-197?page=comments#action_12452584 ] 
            
Sam Wong commented on TOBAGO-197:
---------------------------------

Am I supposed to download myfaces-tobago-1.0.9-SNAPSHOT-dist.zip    at http://people.apache.org/builds/myfaces/nightly/  for the nightly build?  thanks



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

        

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

Posted by "Sam Wong (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOBAGO-197?page=comments#action_12452583 ] 
            
Sam Wong commented on TOBAGO-197:
---------------------------------

I tried to download the nightly build to test the fix.  I went to http://people.apache.org/builds/myfaces/nightly/ and did not find any source code?  am I going to wrong URL?  May I have the correct URL?  thanks again.

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

        

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

Posted by "Bernd Bohmann (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOBAGO-197?page=comments#action_12452339 ] 
            
Bernd Bohmann commented on TOBAGO-197:
--------------------------------------

Can you test it with the nightly build, please.

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

        

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

Posted by "Volker Weber (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOBAGO-197?page=comments#action_12452413 ] 
            
Volker Weber commented on TOBAGO-197:
-------------------------------------

fix is commited.

please try out the next nightly and give feetback.

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

        

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

Posted by "Sam Wong (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOBAGO-197?page=comments#action_12452436 ] 
            
Sam Wong commented on TOBAGO-197:
---------------------------------

What about the expandstate? I would like to expand the entire tree when it display by default if I want it to?  thanks.  I will try out the next nightly build.  thanks agian.

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

        

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

Posted by "Bernd Bohmann (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOBAGO-197?page=comments#action_12453436 ] 
            
Bernd Bohmann commented on TOBAGO-197:
--------------------------------------

With the next version of the maven-war-plugin we are able to include the sources in the war.
Unfortunately i didn't know a release date for the maven-war-plugin.

You can checkout the source 

http://myfaces.apache.org/tobago/getting-started.html

or 

view online the demo source

with 

http://myfaces.apache.org/tobago/tobago-example/tobago-example-demo/source-repository.html

http://svn.apache.org/viewcvs.cgi/myfaces/tobago/trunk/example/demo


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

        

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

Posted by "Sam Wong (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOBAGO-197?page=comments#action_12453433 ] 
            
Sam Wong commented on TOBAGO-197:
---------------------------------

Is there a demo java source file for 1.0.9?  I download the myfaces-tobago-1.0.9-SNAPSHOT-example.  I would like to view the myfaces-tobago-1.0.9-SNAPSHOT-example java source code.  thanks.

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

        

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

Posted by "Sam Wong (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOBAGO-197?page=comments#action_12452228 ] 
            
Sam Wong commented on TOBAGO-197:
---------------------------------

I used version 1.0.8 tobago

> 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
>         Environment: JBoss 4.4
> JDK 1.5
>            Reporter: Sam Wong
>
> 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