On page 317 there is an example of adding role checkboxes to a list of
users. Next to each user, the JSP adds a User and Administrator checkbox
where you can select roles for the user. Then, at the bottom of the screen,
there's a submit button to update all of the user roles in the list.
*
On 10-03-2009 at 11:02, Seth Duda wrote:
Now, the issue I have with this is what happens if the user list changes
before the user presses submit? The indexes assigined in
users[${index}].roles might no longer refer to the correct user.
How would you go about actually building something like
When I have a form to edit multiple entities at once, I use indexed
properties in a similar manner to this example. What I do not do is allow
the list that I'm indexing into to be initialized before binding takes
place, for exactly the reason you have pointed out. Instead, I always have a