[
https://issues.apache.org/jira/browse/WW-4387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14100782#comment-14100782
]
ASF GitHub Bot commented on WW-4387:
------------------------------------
GitHub user aleksandr-m opened a pull request:
https://github.com/apache/struts/pull/22
WW-4387 - preselect multiple options not working in <s:optgroup> when key
is not a string.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/aleksandr-m/struts feature/preselect-optgroup
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/struts/pull/22.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #22
----
commit 0c63de2fa91a76e989848d66afc40c4e50d18622
Author: Aleksandr Mashchenko <[email protected]>
Date: 2014-08-18T16:17:13Z
WW-4387 - using original key type for contains method.
----
> Preselect multiple options not working in <s:optgroup> when key is not a
> string
> -------------------------------------------------------------------------------
>
> Key: WW-4387
> URL: https://issues.apache.org/jira/browse/WW-4387
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.3.16.3
> Reporter: Aleksandr Mashchenko
> Labels: patch
> Fix For: 2.3.18
>
>
> Below code will NOT preselect options in optgroup because type of key is not
> a string.
> {code:xml}
> <s:select name="ids" list="#{1:'AA'}" multiple="true" value="{1, 2, 3}">
> <s:optgroup label="List BB" list="#{2:'BB', 3:'CC'}" />
> </s:select>
> {code}
> Original [SO question.|http://stackoverflow.com/q/25363102/1700321]
--
This message was sent by Atlassian JIRA
(v6.2#6252)