Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-5107

JQuery plugin does not handle dynamic component ids correctly

    XMLWordPrintableJSON

Details

    Description

      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. 

      Attachments

        Activity

          People

            Unassigned Unassigned
            nikos nikos dimitrakas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: