You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2015/05/29 23:01:06 UTC

svn commit: r1682548 - in /myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main: java/org/apache/myfaces/tobago/example/test/SelectManyListboxBean.java webapp/test/selectManyListbox/selectManyListbox-value.xhtml

Author: lofwyr
Date: Fri May 29 21:01:05 2015
New Revision: 1682548

URL: http://svn.apache.org/r1682548
Log:
TOBAGO-1453: SelectManyRendererBase should support Collection

Modified:
    myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/java/org/apache/myfaces/tobago/example/test/SelectManyListboxBean.java
    myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/selectManyListbox/selectManyListbox-value.xhtml

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/java/org/apache/myfaces/tobago/example/test/SelectManyListboxBean.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/java/org/apache/myfaces/tobago/example/test/SelectManyListboxBean.java?rev=1682548&r1=1682547&r2=1682548&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/java/org/apache/myfaces/tobago/example/test/SelectManyListboxBean.java (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/java/org/apache/myfaces/tobago/example/test/SelectManyListboxBean.java Fri May 29 21:01:05 2015
@@ -20,6 +20,7 @@
 package org.apache.myfaces.tobago.example.test;
 
 import java.util.Collection;
+import java.util.LinkedList;
 import java.util.List;
 import java.util.Set;
 
@@ -29,7 +30,7 @@ public class SelectManyListboxBean {
 
   private Set<String> set;
 
-  private Collection<String> collection;
+  private Collection<String> collection = new LinkedList<String>();
 
   private String[] array;
 

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/selectManyListbox/selectManyListbox-value.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/selectManyListbox/selectManyListbox-value.xhtml?rev=1682548&r1=1682547&r2=1682548&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/selectManyListbox/selectManyListbox-value.xhtml (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/webapp/test/selectManyListbox/selectManyListbox-value.xhtml Fri May 29 21:01:05 2015
@@ -24,7 +24,7 @@
   <tc:page>
     <tc:gridLayoutConstraint width="630px" height="600px"/>
     <f:facet name="layout">
-      <tc:gridLayout rows="auto;auto;auto;auto;auto"/>
+      <tc:gridLayout rows="auto;auto;auto;auto;auto;auto"/>
     </f:facet>
 
     <tc:messages>
@@ -41,6 +41,10 @@
       <tc:selectItem itemValue="a" itemLabel="A Value"/>
       <tc:selectItem itemValue="b" itemLabel="An Alternative"/>
     </tx:selectManyListbox>
+    <tx:selectManyListbox value="#{selectManyListboxBean.collection}" label="array">
+      <tc:selectItem itemValue="a" itemLabel="A Value"/>
+      <tc:selectItem itemValue="b" itemLabel="An Alternative"/>
+    </tx:selectManyListbox>
 
     <tc:button label="submit"/>