You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/06/13 20:55:32 UTC

DO NOT REPLY [Bug 20761] New: - Should have the ability to define collection types

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20761>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20761

Should have the ability to define collection types

           Summary: Should have the ability to define collection types
           Product: Struts
           Version: 1.1 RC1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Digester
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: Gin.Chen@NielsenMedia.com


Should have the ability to do:
&lt;form-bean name="productForm" 
type="org.apache.struts.validator.DynaValidatorForm"&gt;
   &lt;form-property name="productID" type="java.lang.Integer" initial=""/&gt;
   &lt;form-property name="productName" type="java.lang.String"/&gt;
&lt;/form-bean&gt;

&lt;form-bean name="MyProducts" 
type="org.apache.struts.validator.DynaValidatorForm" extends="productForm"&gt;
   &lt;form-property name="productName" collectionType="java.util.ArrayList" 
type="productForm" initial="MyProduct"/&gt;
&lt;/form-bean&gt;

We can further enhance it by using ${productForm} (suggested by James M) or do 
something like ${fb:productForm} to suggest that it is a form-bean to look up.

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org