On Tue, 20 May 2014 10:23:22 -0300, Stephen Nutbrown <steves...@gmail.com> wrote:

Hi Thiago, thanks for the help!

Hi!

I appreciate your comments and thank you for taking the time to help.
The loop which you posted does show the text fields exactly as I want
them (and they are pre populated with the original values from the
array list of strings), but when I submit the form, the updated values
are not in the result object. When the user arrives at the page, there
are already values in the array list, the user may then edit them and
submit the form.

Try adding formState="interation", so Loop will get the edited list from your code again. Of course, this list should be the exact same instance used when you're rendering the form. The form submission is in a different request from the page rendering, so you either need to get the list again or @Persist the list or the object to which this list belongs. See the JavaDoc for LoopFormState or more details.

--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to