[ 
https://issues.apache.org/jira/browse/WW-3995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13598801#comment-13598801
 ] 

Philip Luppens commented on WW-3995:
------------------------------------

This report is incomprehensible: are you saying that the id attribute on the 
reset component is not kept?

Please structure & review your ticket. There is a question marker below that 
explains how to format your content so code block are properly displayed. I 
didn't touch your comment because I have no idea what you're actually trying to 
say.
                
> please change reset.ftl so html id is not lost
> ----------------------------------------------
>
>                 Key: WW-3995
>                 URL: https://issues.apache.org/jira/browse/WW-3995
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tags
>    Affects Versions: 2.3.8
>         Environment: Struts 2 and spring using freemarker
>            Reporter: Saman Moshafi
>              Labels: patch
>
> Using this two lines in JSP:
> <s:submit id="advsearchsubmit" value="Search" cssClass="tinput" 
> title="Search" />
> <s:reset id="advsearchreset" value="Clear" cssClass="tinput" title="Clear" />
> will generate 
> <s:submit id="submit_id" value="Search" cssClass="tinput" title="Search" />
> <s:reset id="reset_id" value="Clear" cssClass="tinput" title="Clear" />
> will generate
> <input type="submit" id="submit_id" value="Search" class="tinput" 
> title="Search"/>
> <input type="reset" name="Clear" value="Clear" class="tinput" title="Clear"/>
> The reset.ftl file should be modified:
> add
> <#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/>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to