[ http://issues.apache.org/struts/browse/STR-1276?page=all ]
Ted Husted resolved STR-1276:
-----------------------------
Fix Version: 1.3.5
(was: 1.2 Family)
Resolution: Fixed
Assign To: (was: Struts Developers)
Docmented in 1.3.5.
> The value(key) form name pattern doesn't work with <html:multibox/>
> -------------------------------------------------------------------
>
> Key: STR-1276
> URL: http://issues.apache.org/struts/browse/STR-1276
> Project: Struts 1
> Type: Improvement
> Components: Core
> Versions: Unknown
> Environment: Operating System: other
> Platform: Other
> Reporter: Mike Youngstrom
> Priority: Minor
> Fix For: 1.3.5
>
> 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)">
> [EMAIL PROTECTED]
> </html:multibox> [EMAIL PROTECTED]
> <html:multibox property="value(emailAddr)">
> [EMAIL PROTECTED]
> </html:multibox> [EMAIL PROTECTED]
> In the returned for map
> Map.get("emailAddr").isArray() == false;
> and
> Map.get("emailAddr").getClass.getName == "String";
> even if both boxes are checked.
> Mike
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira