[
https://issues.apache.org/jira/browse/WW-3563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12985055#action_12985055
]
win clock commented on WW-3563:
-------------------------------
I have "isfirst" "islast" type of parameters that can be attached to label,
textfiled, and submit tags. These parameter are needed in my freemarker
template to determine where to start a new <tr><td> to insert a row or close it.
Up to struts 2.1.2, all working fine perfectly. This problem happens only after
I have upgraded to struts 2.1.6.
By the way, when i tried retrieving the "isfirst" param from <s:label> tag in
label.ftl freemarker template, it still works. Don't know why only <s:submit>
tag got this problem.
> s:param declared within s:submit cannot be retrieved back in freemarker
> template
> --------------------------------------------------------------------------------
>
> Key: WW-3563
> URL: https://issues.apache.org/jira/browse/WW-3563
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.1.6
> Environment: Websphere 7
> Reporter: win clock
>
> (In JSP page)
> <s:submit type="input" value="%{getText('search')}"
> onclick="isSearch('form')">
> <s:param name="isfirst" value="isfirst" />
> </s:submit>
> (In ftl)
> <#if parameters.isfirst??>
> <#include "/${parameters.templateDir}/classic/buttonheader.ftl" /><#t/>
> </#if>
> The above if condition is never met. When I print out the ${parameters},
> "isfirst" is not inside the list.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.