You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by rg...@apache.org on 2007/02/06 17:58:24 UTC
svn commit: r504196 -
/struts/struts2/trunk/core/src/main/resources/template/simple/select.ftl
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/>