That's the intent of the PrimaryKeyEncoder: to provide client/server synchronization so that TextFields inside Loops inside a Form can connect, when the client-side form is submitted, to equivalent server-side objects.
The TextField components (and other form control element components) understand how to operate inside a loop correctly. On each pass through the loop, they render again, with a unique @name and @id attribute. There are some examples for this inside the Tapestry integration suite. I'm afraid real documentation isn't ready yet. On Jan 16, 2008 1:29 PM, Michael Courcy <[EMAIL PROTECTED]> wrote: > Hi, > > Reading the doc on the loop component > http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html#orgapachetapestrycorelibcomponentsloop > > I can see that one of the parameter is encoder (PrymaryKeyEncoder) and > this one should be used for a loop inside a form. > > I don't really grasp it, but does it mean that with an encoder it's > possible to generate loop of textFields with validation for instance, or > make me able to edit a whole collection inside a form ? > > If yes, someone could point examples or give hints ? > > Thanks a lot. > > -- > Michael Courcy > http://courcy.blogspot.com > > -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]