Howard Lewis Ship a écrit :
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.
ok
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.
ok, but now  the intent is confirmed and I can do my search on my own.

when I'll better understand it, I'll make a wiki page with an example.

Thanks for your answer.

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







--
Michael Courcy
http://courcy.blogspot.com


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

Reply via email to