You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by he...@apache.org on 2006/05/17 06:58:10 UTC

svn commit: r407152 - /struts/action2/trunk/core/src/main/resources/template/simple/submit.ftl

Author: hermanns
Date: Tue May 16 21:58:10 2006
New Revision: 407152

URL: http://svn.apache.org/viewcvs?rev=407152&view=rev
Log:
Fixing missing id parameter
See: http://forums.opensymphony.com/thread.jspa?messageID=60164#60164

Modified:
    struts/action2/trunk/core/src/main/resources/template/simple/submit.ftl

Modified: struts/action2/trunk/core/src/main/resources/template/simple/submit.ftl
URL: http://svn.apache.org/viewcvs/struts/action2/trunk/core/src/main/resources/template/simple/submit.ftl?rev=407152&r1=407151&r2=407152&view=diff
==============================================================================
--- struts/action2/trunk/core/src/main/resources/template/simple/submit.ftl (original)
+++ struts/action2/trunk/core/src/main/resources/template/simple/submit.ftl Tue May 16 21:58:10 2006
@@ -1,5 +1,8 @@
 <#if parameters.type?exists && parameters.type=="button">
 <button type="submit"<#rt/>
+<#if parameters.id?exists>
+ id="${parameters.id?html}"<#rt/>
+</#if>
 <#if parameters.name?exists>
  name="${parameters.name?html}"<#rt/>
 </#if>
@@ -17,6 +20,9 @@
 <#else>
 <#if parameters.type?exists && parameters.type=="image">
 <input type="image"<#rt/>
+<#if parameters.id?exists>
+ id="${parameters.id?html}"<#rt/>
+</#if>
 <#if parameters.label?exists>
  alt="${parameters.label?html}"<#rt/>
 </#if>
@@ -25,6 +31,9 @@
 </#if>
 <#else>
 <input type="submit"<#rt/>
+</#if>
+<#if parameters.id?exists>
+ id="${parameters.id?html}"<#rt/>
 </#if>
 <#if parameters.name?exists>
  name="${parameters.name?html}"<#rt/>