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/03/08 21:08:29 UTC

svn commit: r516165 - /struts/struts2/trunk/core/src/main/resources/template/simple/radiomap.ftl

Author: rgielen
Date: Thu Mar  8 12:08:28 2007
New Revision: 516165

URL: http://svn.apache.org/viewvc?view=rev&rev=516165
Log:
WW-1756:
Applied Erik Berg's patch to avoid unchecked reference to name parameter in radio tag freemarker template

Modified:
    struts/struts2/trunk/core/src/main/resources/template/simple/radiomap.ftl

Modified: struts/struts2/trunk/core/src/main/resources/template/simple/radiomap.ftl
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/resources/template/simple/radiomap.ftl?view=diff&rev=516165&r1=516164&r2=516165
==============================================================================
--- struts/struts2/trunk/core/src/main/resources/template/simple/radiomap.ftl (original)
+++ struts/struts2/trunk/core/src/main/resources/template/simple/radiomap.ftl Thu Mar  8 12:08:28 2007
@@ -10,7 +10,11 @@
     <#else>
         <#assign itemValue = stack.findString('top')/>
     </#if>
-<input type="radio" name="${parameters.name?html}" id="${parameters.id?html}${itemKeyStr?html}"<#rt/>
+<input type="radio"<#rt/>
+<#if parameters.name?exists>
+ name="${parameters.name?html}"<#rt/>
+</#if>
+ id="${parameters.id?html}${itemKeyStr?html}"<#rt/>
 <#if tag.contains(parameters.nameValue, itemKey)>
  checked="checked"<#rt/>
 </#if>