You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (Jira)" <ji...@apache.org> on 2022/10/22 07:02:00 UTC
[jira] [Closed] (WW-3392) Submit Template pushId existence.
[ https://issues.apache.org/jira/browse/WW-3392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukasz Lenart closed WW-3392.
-----------------------------
Resolution: Won't Fix
DOJO plugin has been removed
> Submit Template pushId existence.
> ---------------------------------
>
> Key: WW-3392
> URL: https://issues.apache.org/jira/browse/WW-3392
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - Dojo Tags
> Affects Versions: 2.1.8.1
> Reporter: Ken Hoying
> Assignee: Lukasz Lenart
> Priority: Major
>
> There is bug in the submit.ftl ajax template. At the bottom of the template it is not properly checking for the existence of the paramers.pushId.
> NOTE: I have not checked, but I suspect that the same problem occurs in other tags.
> Current code:
> <#if parameters.pushId>
> <script language="JavaScript" type="text/javascript">djConfig.searchIds.push("${parameters.id?html}");</script>
> </#if>
> Suggested Fix:
> <#if parameters.validate?exists>
> <#if parameters.pushId>
> <script language="JavaScript" type="text/javascript">djConfig.searchIds.push("${parameters.id?html}");</script>
> </#if>
> </#if>
> The result that led me to find this was that if I made an Ajax call to update a DIV and that Ajax call returned content that included additional JavaScript to be run as well as an Ajax submit tag, then my additional JavaScript code was not being executed.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)