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

nikos dimitrakas edited comment on WW-5107 at 12/8/20, 4:15 PM:
----------------------------------------------------------------

So you mean that even though the jquery-plugin is unchanged (v 4.0.3) and the 
behaviour broke during the upgrade from 2.5.25 to 2.5.26, it is still the 
plugin that needs to be fixed and not struts? There are only a few changes 
between 2.5.25 and 2.5.26. Is it not possible to identify the change that 
caused this unexpected behaviour and fix it?


was (Author: nikos):
So you mean that even though the jquery-plugin is unchanged (v 4.0.3) and the 
behaviour broke during the upgrade from 5.2.25 to 5.2.26, it is still the 
plugin that needs to be fixed and not struts? There are only a few changes 
between 5.2.25 and 5.2.26. Is it not possible to identify the change that 
caused this unexpected behaviour and fix it?

> JQuery plugin does not handle dynamic component ids correctly
> -------------------------------------------------------------
>
>                 Key: WW-5107
>                 URL: https://issues.apache.org/jira/browse/WW-5107
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Tags
>    Affects Versions: 2.5.26
>            Reporter: nikos dimitrakas
>            Priority: Major
>              Labels: javascript, jquery, sj:submit
>             Fix For: 2.6
>
>
> Starting with 2.5.26 (works fine in 2.5.25) javascript generated by sj:submit 
> does not handle the dynamic form id correctly. All the html-parts replace 
> correctly expressions like %\{courseID}, but the corresponding expression in 
> the submit button's generated javascript shows %\{courseID} instead of the 
> value. The generated javascript in 2.5.25 was 
> options_submit_460127194.formids = "addexam_1234";
> But in 2.5.26 it is:
> options_submit_460127194.formids = "addexam_%\{courseID}";
>  
> The containing s:form has id="addexam_%\{courseID}"
>  
> Interestingly,the corresponding generated code by an sj:a handles the dynamic 
> id correctly. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to