Author: rgielen
Date: Tue Feb 6 08:58:23 2007
New Revision: 504196
URL: http://svn.apache.org/viewvc?view=rev&rev=504196
Log:
WW-1711:
This fix will work also with primitve types & is more fm-like
Modified:
struts/struts2/trunk/core/src/main/resources/template/simple/select.ftl
Modified:
struts/struts2/trunk/core/src/main/resources/template/simple/select.ftl
URL:
http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/resources/template/simple/select.ftl?view=diff&rev=504196&r1=504195&r2=504196
==============================================================================
--- struts/struts2/trunk/core/src/main/resources/template/simple/select.ftl
(original)
+++ struts/struts2/trunk/core/src/main/resources/template/simple/select.ftl Tue
Feb 6 08:58:23 2007
@@ -57,7 +57,7 @@
<#assign itemValue = stack.findString('top')/>
</#if>
<option value="${itemKey?html}"<#rt/>
- <#if parameters.nameValue?exists &&
tag.contains(parameters.nameValue.toString(), itemKey) == true>
+ <#if parameters.nameValue?exists &&
tag.contains(parameters.nameValue?string, itemKey) == true>
selected="selected"<#rt/>
</#if>
>${itemValue?html}</option><#lt/>