B
Ben Jessel
Hi,
I have two list boxes that look like this:
user_list
--------- ---------
|user a| |user f |
|user b| >> | |
|user c| > | |
|user d| < | |
|user e| << | |
|-------- |--------
[Submit]
On the left are a list of users ( which I load via a custom tag ). I
use the arrows to move the users from one box to the other. The moving
is done with client side code ( javascript ). I want to post all the
data contained in the right box, by clicking the submit button.
I have a getter in my struts form called getUser_list which is of type
list.
But ( as you wise struts developers know ), only the values that have
been selected / highlighted will actually be passed back. I want the
whole list box to be returned. My options, as I see it are:
a) Write code to highlight all the elements in the listbox in the
onSubmit() part of the form.
b) Do the whole moving backward and forwards of the users as server
side, returning to this page after the update, and reloading the data.
Does anyone have any suggestions?
Thanks
Ben
I have two list boxes that look like this:
user_list
--------- ---------
|user a| |user f |
|user b| >> | |
|user c| > | |
|user d| < | |
|user e| << | |
|-------- |--------
[Submit]
On the left are a list of users ( which I load via a custom tag ). I
use the arrows to move the users from one box to the other. The moving
is done with client side code ( javascript ). I want to post all the
data contained in the right box, by clicking the submit button.
I have a getter in my struts form called getUser_list which is of type
list.
But ( as you wise struts developers know ), only the values that have
been selected / highlighted will actually be passed back. I want the
whole list box to be returned. My options, as I see it are:
a) Write code to highlight all the elements in the listbox in the
onSubmit() part of the form.
b) Do the whole moving backward and forwards of the users as server
side, returning to this page after the update, and reloading the data.
Does anyone have any suggestions?
Thanks
Ben