Author: jholmes
Date: Thu Jul 19 11:40:16 2007
New Revision: 557726

URL: http://svn.apache.org/viewvc?view=rev&rev=557726
Log:
Fix test failures caused by the fix for WW-1887. FreeMarker was complaining 
about the toString() call when it was applied to the value created by this tag: 
<#assign itemKey = ''/>.

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=557726&r1=557725&r2=557726
==============================================================================
--- struts/struts2/trunk/core/src/main/resources/template/simple/select.ftl 
(original)
+++ struts/struts2/trunk/core/src/main/resources/template/simple/select.ftl Thu 
Jul 19 11:40:16 2007
@@ -42,11 +42,14 @@
         <#if parameters.listKey?exists>
             <#if stack.findValue(parameters.listKey)?exists>
               <#assign itemKey = stack.findValue(parameters.listKey)/>
+              <#assign itemKeyStr = 
stack.findValue(parameters.listKey).toString()/>
             <#else>
               <#assign itemKey = ''/>
+              <#assign itemKeyStr = ''/>
             </#if>
         <#else>
             <#assign itemKey = stack.findValue('top')/>
+            <#assign itemKeyStr = stack.findValue('top').toString()/>
         </#if>
         <#if parameters.listValue?exists>
             <#if stack.findString(parameters.listValue)?exists>
@@ -57,7 +60,6 @@
         <#else>
             <#assign itemValue = stack.findString('top')/>
         </#if>
-    <#assign itemKeyStr = itemKey.toString()/>
     <option value="${itemKeyStr?html}"<#rt/>
         <#if tag.contains(parameters.nameValue, itemKey) == true>
  selected="selected"<#rt/>


Reply via email to