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

Unable to retrieve s:hidden field values

    Details

    • Flags:
      Important

      Description

      After upgrading Struts 2.3.16 to 2.3.20, my application GUI looks different. The application cannot retrieve a value stored in a hidden field using the jquery find function.
      – The hidden fields are stored in table rows

                  <table>
                     <s:iterator value="xxx" var="yyy">
                            <tr onclick="javascript:showRow(this);" >
                                  <td> some value </td>
                                 <s:hidden id="some hidden value" value="%{hiddenValue}" />
                                 <td> some value</td>             
                          </tr>	
                    </s:iterator>
              </table>
      
             function showRow(row) {
                      var $element = $(row);
                      $element.closest("tr").find('td:first').add($element).find("input:hidden").each(function (i, elem) {
      
                      // Why the code cannot access to any hidden fields here - not working in Struts 2.3.20
                      }
            }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lukaszlenart Lukasz Lenart
                Reporter:
                nickhoang1 nick
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 48h
                  48h
                  Remaining:
                  Remaining Estimate - 48h
                  48h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified