struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <>
Subject [jira] Assigned: (WW-3392) Submit Template pushId existence.
Date Mon, 22 Feb 2010 15:44:27 GMT


Lukasz Lenart reassigned WW-3392:

    Assignee: Lukasz Lenart

> Submit Template pushId existence.
> ---------------------------------
>                 Key: WW-3392
>                 URL:
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Dojo Tags
>    Affects Versions:
>            Reporter: Ken Hoying
>            Assignee: Lukasz Lenart
> 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("${}");</script>
> </#if> 
> Suggested Fix:
> <#if parameters.validate?exists>
> 	<#if parameters.pushId>
> <script language="JavaScript" type="text/javascript">djConfig.searchIds.push("${}");</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 is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message