Author: musachy
Date: Tue Jul 31 10:44:17 2007
New Revision: 561407

URL: http://svn.apache.org/viewvc?view=rev&rev=561407
Log:
Improve select tag documentation

Modified:
    
struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Select.java

Modified: 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Select.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Select.java?view=diff&rev=561407&r1=561406&r2=561407
==============================================================================
--- 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Select.java
 (original)
+++ 
struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Select.java
 Tue Jul 31 10:44:17 2007
@@ -47,6 +47,7 @@
  *        multiple="true"
  *        size="3"
  *        required="true"
+ *        value="%{petDao.pets.{id}}"
  * />
  *
  * <s:select label="Months"
@@ -132,8 +133,8 @@
     }
 
     @StrutsTagAttribute(description=" Creates a multiple select. The tag will 
pre-select multiple values" +
-                " if the values are passed as an Array (of appropriate types) 
via the value attribute. Passing " +
-                "a Collection may work too? Haven't tested this.", 
type="Boolean", defaultValue="false")
+                " if the values are passed as an Array or a Collection(of 
appropriate types) via the value attribute. If one of the keys equals" +
+                " one of the values in the Collection or Array it wil be 
selected", type="Boolean", defaultValue="false")
     public void setMultiple(String multiple) {
         this.multiple = multiple;
     }


Reply via email to