In the For component, it is possible to specifiy a "value" parameter, which
will hold the current object for every pass of the for loop. If we take the
example from the tapestry page and shorten it a bit;

<tr jwcid="@For" source="ognl:customerList" keyExpression="id"
     value="ognl:customer" element="tr">
   <td><span jwcid="@TextField" value="ognl:customer.fullName"/></td>
</tr>


Then if you have ten customers in customerList, there will be ten textFields
shown, and each of those TextFields will call getFullName() on the specific
customer object when it renders, and call the setFullName(String foo) method
on the specific customer object when updated. IIRC.

Cheers,
PS


On 26 Jun 2006 15:51:00 +0200, Voors Paul <[EMAIL PROTECTED]> wrote:

Hello All,

We have a page with a form were we ask the customer standard information
about name an address etc.
We ask the information for multiple customers an for each customer we use
a seperate object.
In the form we want to bind the firstName box, lastName box etc to
corresponding fields in the objects for eacht costomer. If we use the normal
for loop only the last customer is passed the others are lost.
We cannot find an exammple of how to solve this problem. In the for loop
documentation the IprimaryKeyConverter is mentioned, but We cannot figure
out how to implement this properly.
Can someone help us with an example or advise?


Thanks a lot in advance!



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


Reply via email to