Philippe Joly <phjoly <at> sopragroup.com> writes: > Now I need to create a screen like that (it is just an example) > Making a screen for updating multiples entities in the same time: > > (text) (text Input) (PropertySelection) > UserId UserName Group > > xxx01 Peter Admin > xxx02 Bob Guess > xxx04 Mark Beginner > > [Save] [Cancel] > > First, when the screen is displayed, I need to display PropertySelections with > correct selected values (the current user group for each user).
Initialize a ListEditMap in pageBeginRender() and load the info of the users into there. Use a For component to loop through each of them. Write a key converter to use with the For component to return the right user object. > OnSave : all users are updated (new name and new group) The user objects in the ListEditMap will be updated. In the listener for the Form, save them to the DB. > In case of problem during Save (functionnal rule not respected for example), I > need to display again the screen, with previously data user has set. If there are any errors, don't save them to the DB. -- Author of a book for learning Tapestry (http://www.agileskills2.org/EWDT) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
