It appears that the value for your paymentPropertyName is not pointing to the 
INDIVIDUAL property, but to the ArrayList as a whole.  Try setting it to a 
property of the object that is in the array list.  ie. payments[#].amount

Be sure your form has a getPayments method as well.


-----Original Message-----
From: fea jabi [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 19, 2006 9:44 AM
To: user@struts.apache.org
Subject: form-bean is not getting updated with the values entered


Have an ArrayList in the form-bean

<form-property name="payments" type="java.util.ArrayList"/>

This contains the list of row objects required for the below table.




using displaytag to display the the list of elements.

<display:table name="sessionScope.Form1.payments" id="row" 
requestURI="PrepareAction.do" class="table1">
......
<display:column titleKey="lbl.payment">
      <c:set var="paymentPropertyName" value="payments[${row_rowNum 
-1}].paymentAnn"/>

      <html:text name="Form1" property='<%= pageContext.getAttribute  
("paymentPropertyName").toString() %>' />
</display:column>

....................
.......................
</display:table>

I tried using the above code but, when the form is submitted the values 
entered in the input fields are not updated to the form-bean arraylist. 
Using validator for validation. that seams to be working fine but the 
form-beans ArrayList is not updated.

what am I missing here? how to fix this?

Thanks.

_________________________________________________________________
Get today's hot entertainment gossip  http://movies.msn.com/movies/hotgossip


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to