CheckboxList with value as Map should have the map keys compared instead of its
value.
--------------------------------------------------------------------------------------
Key: WW-1471
URL: http://issues.apache.org/struts/browse/WW-1471
Project: Struts 2
Issue Type: Bug
Components: Views
Affects Versions: 2.0.1
Reporter: tm_jee
Assigned To: tm_jee
Fix For: 2.0.2
checkboxlist with value attribute as map should have its key value compared
instead of its value.
eg.
<s:checkboxlist list="#{'aaa':'AAA', 'bbb':'BBB','ccc':'CCC'}"
name="...."
label="...."
value="#{'aaa':'AAA', 'ccc':'CCC'}" />
should have both checkbox 'aaa' and 'ccc' selected, now it needs to be
<s:checkboxlist list="#{'aaa':'AAA', 'bbb':'BBB','ccc':'CCC'}"
name="...."
label="...."
value="#{'aaa':'aaa', 'ccc':'ccc'}" />
in order for them to be selected, cause if a map is supplied as the value
attribute, it compare it's value instead of key.
--
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