You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Michael Baule (JIRA)" <de...@myfaces.apache.org> on 2007/04/02 10:59:32 UTC

[jira] Created: (TOBAGO-343) Selection problem with

Selection problem with <tc:treeListbox selectable="siblingLeafOnly">
--------------------------------------------------------------------

                 Key: TOBAGO-343
                 URL: https://issues.apache.org/jira/browse/TOBAGO-343
             Project: MyFaces Tobago
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.0.10, 1.0.9
         Environment: Suse Linux Server 9 , Tomcat 5.5.20, jdk 1.5.0_07
            Reporter: Michael Baule
             Fix For: 1.0.11


Since tobago version 1.0.9 we've got a problem with selection and treeListbox. If you select one item at TreeListBox (SelectMode siblingLeafOnly) in the page, the method getSelection() (org.apache.myfaces.tobago.model.TreeState) returns a empty Set. In all other cases, if you select more than one item, the method getSelection() is working ok.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TOBAGO-343) Selection problem with

Posted by "Volker Weber (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TOBAGO-343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12486478 ] 

Volker Weber commented on TOBAGO-343:
-------------------------------------

I can't reproduce this issue, i testet with the demo app with the changes below, and get always the correct values.
Also on another bigger app i'm using this without problems. Can you please create a small example to reproduce this.


Index: example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/TobagoDemoController.java
===================================================================
--- example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/TobagoDemoController.java (Revision 525257)
+++ example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/TobagoDemoController.java (Arbeitskopie)
@@ -579,4 +579,10 @@
   }


+  public String redisplay() {
+    for (DefaultMutableTreeNode node : treeState.getSelection()) {
+      LOG.info("node.getUserObject().getName() = \"" + ((Node)node.getUserObject()).getName() + "\"");
+    }
+    return "redisplay";
+  }
 }
Index: example/demo/src/main/webapp/overview/tree.jsp
===================================================================
--- example/demo/src/main/webapp/overview/tree.jsp      (Revision 525257)
+++ example/demo/src/main/webapp/overview/tree.jsp      (Arbeitskopie)
@@ -108,7 +108,7 @@

               <tc:cell />

-              <tc:button action="redisplay" label="#{overviewBundle.submit}" />
+              <tc:button action="#{demo.redisplay}" label="#{overviewBundle.submit}" />
             </tc:panel>
           </tc:tab>
         </tc:tabGroup>


> Selection problem with <tc:treeListbox selectable="siblingLeafOnly">
> --------------------------------------------------------------------
>
>                 Key: TOBAGO-343
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-343
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.9, 1.0.10
>         Environment: Suse Linux Server 9 , Tomcat 5.5.20, jdk 1.5.0_07
>            Reporter: Michael Baule
>         Assigned To: Volker Weber
>             Fix For: 1.0.11
>
>
> Since tobago version 1.0.9 we've got a problem with selection and treeListbox. If you select one item at TreeListBox (SelectMode siblingLeafOnly) in the page, the method getSelection() (org.apache.myfaces.tobago.model.TreeState) returns a empty Set. In all other cases, if you select more than one item, the method getSelection() is working ok.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.