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/03/05 23:18:38 UTC

DO NOT REPLY [Bug 17698] New: - The value(key) form name pattern doesn't work with

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=17698>.
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=17698

The value(key) form name pattern doesn't work with <html:multibox/>

           Summary: The value(key) form name pattern doesn't work with
                    <html:multibox/>
           Product: Struts
           Version: 1.1 Beta 3
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Custom Tags
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: youngm@hotpop.com


I've attempted to use the value(key) Map FormBean pattern with a <html:multibox> 
and the result in my FormBean Map for the specified key is an object of type 
String instead of an object of type String[] array.




Example:


<html:multibox property="value(emailAddr)">


joe@bob.net


</html:multibox> joe@bob.net




<html:multibox property="value(emailAddr)">


fred@foo.com


</html:multibox> fred@foo.com




In the returned for map




Map.get("emailAddr").isArray() == false;


and


Map.get("emailAddr").getClass.getName == "String";




even if both boxes are checked.




Mike

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