struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (WW-3995) please change reset.ftl so html id is not lost
Date Fri, 11 Apr 2014 13:21:17 GMT

     [ https://issues.apache.org/jira/browse/WW-3995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Lukasz Lenart updated WW-3995:
------------------------------

    Description: 
Using this two lines in JSP:
{code:html}
<s:submit id="advsearchsubmit" value="Search" cssClass="tinput" title="Search" />
<s:reset id="advsearchreset" value="Clear" cssClass="tinput" title="Clear" />
{code}
will generate 
{code:html}
<s:submit id="submit_id" value="Search" cssClass="tinput" title="Search" />
<s:reset id="reset_id" value="Clear" cssClass="tinput" title="Clear" />
{code}
will generate
{code:html}
<input type="submit" id="submit_id" value="Search" class="tinput" title="Search"/>
<input type="reset" name="Clear" value="Clear" class="tinput" title="Clear"/>
{code}

The reset.ftl file should be modified:
add
{code:html}
<#if parameters.id??>
 id="${parameters.id?html}"<#rt/>
</#if>
{code}
after
{code:html}
<button type="reset"<#rt/>
{code}

and also
{code:html}
<#if parameters.id??>
 id="${parameters.id?html}"<#rt/>
</#if>
{code}
after
{code:html}
<input type="reset"<#rt/>
{code}

  was:
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/>


> 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
>             Fix For: 2.5
>
>
> Using this two lines in JSP:
> {code:html}
> <s:submit id="advsearchsubmit" value="Search" cssClass="tinput" title="Search" />
> <s:reset id="advsearchreset" value="Clear" cssClass="tinput" title="Clear" />
> {code}
> will generate 
> {code:html}
> <s:submit id="submit_id" value="Search" cssClass="tinput" title="Search" />
> <s:reset id="reset_id" value="Clear" cssClass="tinput" title="Clear" />
> {code}
> will generate
> {code:html}
> <input type="submit" id="submit_id" value="Search" class="tinput" title="Search"/>
> <input type="reset" name="Clear" value="Clear" class="tinput" title="Clear"/>
> {code}
> The reset.ftl file should be modified:
> add
> {code:html}
> <#if parameters.id??>
>  id="${parameters.id?html}"<#rt/>
> </#if>
> {code}
> after
> {code:html}
> <button type="reset"<#rt/>
> {code}
> and also
> {code:html}
> <#if parameters.id??>
>  id="${parameters.id?html}"<#rt/>
> </#if>
> {code}
> after
> {code:html}
> <input type="reset"<#rt/>
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message