You might like to take a look at the following example on allowing users to input up to 5 numbers.
http://lombok.demon.co.uk/tapestry5Demo/test/sum The source code is available on the same page. Shing --- On Wed, 17/12/08, Eric Ma <eric...@db.com> wrote: > From: Eric Ma <eric...@db.com> > Subject: [T5] How to handle a variable number of input fields in a form > To: users@tapestry.apache.org > Date: Wednesday, 17 December, 2008, 2:12 AM > Forgive me if this question has been asked a million and one > times. Coming > from a Struts background, one of the feature I find useful > over there is the > easiness for handling a non-fixed number of form fields > that are rendered > through a loop, using the "indexed properties" > approach. What is the > equivalent approach in T5? I think I know how to render an > array of > textboxes using <t:loop> in the .tml. But how do I > declare a List or an > array in the .java class? Is T5 smart enough to populate > the list/array > upon form post from the textboxes, and set textbox values > from the > array/List on a page render request? Can someone give me a > pointer to some > sample code? > > Thanks, > -- > View this message in context: > http://www.nabble.com/-T5--How-to-handle-a-variable-number-of-input-fields-in-a-form-tp21038549p21038549.html > Sent from the Tapestry - User mailing list archive at > Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: > users-h...@tapestry.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org