mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
select tag: current option is not selected if actual value to check is no String
(aka: nameValue resolves to type other than String) o applied patch to submit.ftl submitted by Stuart Piltch WW-1711 git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/branches/STRUTS_2_0_X@508478 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -57,7 +57,7 @@
|
||||
<#assign itemValue = stack.findString('top')/>
|
||||
</#if>
|
||||
<option value="${itemKey?html}"<#rt/>
|
||||
<#if tag.contains(parameters.nameValue, itemKey) == true>
|
||||
<#if tag.contains(parameters.nameValue, itemKey) == true || (parameters.nameValue?exists && parameters.nameValue?string == itemKey)>
|
||||
selected="selected"<#rt/>
|
||||
</#if>
|
||||
>${itemValue?html}</option><#lt/>
|
||||
|
||||
Reference in New Issue
Block a user