You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (Jira)" <ji...@apache.org> on 2022/09/14 19:02:00 UTC
[jira] [Closed] (WW-2122) select tag listKey/listValue defaults apply to Maps only
[ https://issues.apache.org/jira/browse/WW-2122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukasz Lenart closed WW-2122.
-----------------------------
Resolution: Won't Fix
> select tag listKey/listValue defaults apply to Maps only
> --------------------------------------------------------
>
> Key: WW-2122
> URL: https://issues.apache.org/jira/browse/WW-2122
> Project: Struts 2
> Issue Type: Improvement
> Components: Plugin - Tags
> Affects Versions: 2.0.9
> Environment: Tomcat 6, jre 6
> Reporter: Laszlo Borsos
> Priority: Minor
> Fix For: 6.1.0
>
>
> Webwork book states for select tag attributes:
> listKey - String - Expression for the list key; key by default.
> listValue - String - Expression for the list value; value by default.
> I had a list of type ArrayList<KeyValueBean> and to my surprise it did not work with the defaults. I had to write.
> <s:select name="id" list="nonmember" listKey="key" listValue="value" />
> I think it need not be restricted to Maps.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)