Hello, Thank you again Thiago, Thilo and Java Lance over on StackOverflow - I posted a link there to this mailing list thread so anyone can follow if they come searching for the same issue.
Adding formState="interation" did the trick, the Result object was already persisted. I have learnt a few things from this: 1- Putting things in components is generally very strongly advised. I have around 10 at the moment, but there are certainly a lot of things which I should move in to components to make the project easier to manage. It is rather likely that at some stage soon I will be re-factoring my whole project (which is rather large, consisting of 59 classes (10 components, 18 pages, 9 entities, several "utility" classes and some services). I finally have some time to be working on this project rather than being pulled in lots of directions, so now is the time (It has suffered from lots of "cheapo" solutions this last few months). 2- I now know what formState="interaction" is. Following the advice I looked it up here: http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/corelib/LoopFormState.html 3- I owe the community a great deal of thanks :) Thank you! You have made my day. Steve On 20 May 2014 14:32, Thiago H de Paula Figueiredo <thiag...@gmail.com> wrote: > 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 > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org