You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "tm_jee (JIRA)" <ji...@apache.org> on 2006/10/14 14:08:25 UTC
[jira] Resolved: (WW-1471) CheckboxList with value as Map should
have the map keys compared instead of its value.
[ http://issues.apache.org/struts/browse/WW-1471?page=all ]
tm_jee resolved WW-1471.
------------------------
Resolution: Fixed
fixed
struts2 svn head
Sending src/main/java/org/apache/struts2/util/ContainUtil.java
Adding src/test/java/org/apache/struts2/util/ContainUtilTest.java
Transmitting file data ..
Committed revision 463918.
webwork cvs head
Checking in test/com/opensymphony/webwork/util/ContainUtilTest.java;
/cvs/webwork/src/test/com/opensymphony/webwork/util/ContainUtilTest.java,v <-- ContainUtilTest.java
initial revision: 1.1
done
Checking in java/com/opensymphony/webwork/util/ContainUtil.java;
/cvs/webwork/src/java/com/opensymphony/webwork/util/ContainUtil.java,v <-- ContainUtil.java
new revision: 1.5; previous revision: 1.4
done
> 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