struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From w...@apache.org
Subject svn commit: r780000 - /struts/struts2/trunk/core/src/main/resources/template/simple/reset.ftl
Date Fri, 29 May 2009 14:40:43 GMT
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>



Mime
View raw message