You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by we...@apache.org on 2009/05/29 16:40:43 UTC

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

Author: wesw
Date: Fri May 29 14:40:42 2009
New Revision: 780000

URL: http://svn.apache.org/viewvc?rev=780000&view=rev
Log:
WW-3097, allowing s:reset to render disabled button

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

Modified: struts/struts2/trunk/core/src/main/resources/template/simple/reset.ftl
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/resources/template/simple/reset.ftl?rev=780000&r1=779999&r2=780000&view=diff
==============================================================================
--- struts/struts2/trunk/core/src/main/resources/template/simple/reset.ftl (original)
+++ struts/struts2/trunk/core/src/main/resources/template/simple/reset.ftl Fri May 29 14:40:42 2009
@@ -34,6 +34,9 @@
 <#if parameters.cssStyle??>
  style="${parameters.cssStyle?html}"<#rt/>
 </#if>
+<#if parameters.disabled?default(false)>
+ disabled="disabled"<#rt/>
+</#if>
 <#include "/${parameters.templateDir}/simple/scripting-events.ftl"/>
 <#include "/${parameters.templateDir}/simple/common-attributes.ftl" />
 <#include "/${parameters.templateDir}/simple/dynamic-attributes.ftl" />
@@ -55,8 +58,11 @@
 <#if parameters.title??>
  title="${parameters.title?html}"<#rt/>
 </#if>
+<#if parameters.disabled?default(false)>
+ disabled="disabled"<#rt/>
+</#if>
 <#include "/${parameters.templateDir}/simple/scripting-events.ftl" />
 <#include "/${parameters.templateDir}/simple/common-attributes.ftl" />
 <#include "/${parameters.templateDir}/simple/dynamic-attributes.ftl" />
 />
-</#if>
\ No newline at end of file
+</#if>