struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4367) preselect values in <s:optgroup>
Date Sat, 12 Nov 2016 17:29:58 GMT

    [ https://issues.apache.org/jira/browse/WW-4367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15659975#comment-15659975
] 

Lukasz Lenart commented on WW-4367:
-----------------------------------

Just provide {{listKey}} in your action

> preselect values in <s:optgroup>
> --------------------------------
>
>                 Key: WW-4367
>                 URL: https://issues.apache.org/jira/browse/WW-4367
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Expression Language
>    Affects Versions: 2.3.15.1
>            Reporter: Gulyaev Nikolay
>            Priority: Critical
>             Fix For: 2.5.6
>
>
> How I can preselect values in {{<s:optgroup>}}?
> Example:
> {code:xml}
> <s:select multiple="true" value="selectedSubjects" list="%{{}}" name="selectedSubjects">
> 	<s:iterator value="subjectCategoryList">
> 		<s:optgroup label="%{name}" list="subjectMap[identity]" listKey="identity" listValue="name"/>
> 	</s:iterator>
> </s:select>
> {code}
> Please, add this bug or get me answer



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message