struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "nick (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4642) Unable to retrieve s:hidden field values
Date Thu, 09 Jun 2016 19:15:21 GMT

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

nick commented on WW-4642:
--------------------------

Hi Johannes,

I still have the problem even with using find('input[type='hidden"]'). The
tag <s:hidden> cannot be recognized.
I then changed it to <input type="hidden"> to be recognized by the find
function. However the property value cannot be recognized, then I have to
change the property syntax to something else.

Why the new Struts 2.3.20 is not backward compatible. What jar files have
been changed? What freemarker, jquery versions need to be used in order for
the existing code to work?

Please advise.

Nick

On Wed, Jun 8, 2016 at 2:39 AM, Johannes Geppert (JIRA) <jira@apache.org>



> Unable to retrieve s:hidden field values
> ----------------------------------------
>
>                 Key: WW-4642
>                 URL: https://issues.apache.org/jira/browse/WW-4642
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors, Expression Language
>    Affects Versions: 2.3.20
>         Environment: windows 7, jboss eap
>            Reporter: nick
>            Assignee: Johannes Geppert
>            Priority: Blocker
>              Labels: newbie
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> 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
>                 }
>       }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message