The reset.ftl file should be modified so if is is defined in the jsp, e.g.
<s:reset id="myreset" value="Clear" cssClass="tinput" title="Clear" />
then the id appears in the translated HTML:
<input type="reset" id="myreset" value="Clear" class="tinput"
title="Clear"/>
and not
<input type="reset" value="Clear" class="tinput" title="Clear"/>
I modified reset.ftl and added
<#if parameters.id??>
id="${parameters.id?html}"<#rt/>
</#if>
after
<button type="reset"<#rt/>
and also
<#if parameters.id??>
id="${parameters.id?html}"<#rt/>
</#if>
after
<input type="reset"<#rt/>
thanks,
saman1000
--
View this message in context:
http://struts.1045723.n5.nabble.com/please-change-reset-ftl-so-html-id-is-not-overwritten-tp5711988.html
Sent from the Struts - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]