[T5] How to handle a variable number of input fields in a form

2008-12-16 Thread Eric Ma
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

Re: [T5] How to handle a variable number of input fields in a form

2008-12-16 Thread Igor Drobiazko
The component SubmitNotifier is the solution. http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/SubmitNotifier.html Put this component inside a form. When the form is submited the component will fire two events for every iteration of your loop. Handle

Re: [T5] How to handle a variable number of input fields in a form

2008-12-16 Thread Shing Hing Man
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