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:08:00 UTC

[jira] [Closed] (WW-2797) Allow select headerKey to be resolved to non-string objects

     [ https://issues.apache.org/jira/browse/WW-2797?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukasz Lenart closed WW-2797.
-----------------------------
    Resolution: Fixed

> Allow select headerKey to be resolved to non-string objects
> -----------------------------------------------------------
>
>                 Key: WW-2797
>                 URL: https://issues.apache.org/jira/browse/WW-2797
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - Tags
>            Reporter: Scott Lewis
>            Priority: Major
>             Fix For: 6.1.0
>
>
> Currently, it seems that the headerKey value always resolves to a String.  However, sometimes the list that corresponds to the rest of the select may have keys that resolve to other objects, such as Integer.  Thus, when passing in lists of "selected values", if you use this other object type, such as a List<Integer>, the headerKey value cannot be "pre-selected", as the types will not match; you'd have to use a more generic List to get it to work.
> It would be nice if you could have headerKey match the type of the other keys in the list, or at least be compatible with lists of a certain type.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)