I´m currently developing a Struts2 app where a user will make one of three choices, and based on the choice a number of different predefined checkboxes will be presented. Some of the checkboxes will appear regardless of the choice made, while others will be unique for each choice that can be made. In total, there are currently around 50 different checkboxes, and each checkbox will have an ID, from 1 to 50.
The selections made by the user will be persisted as rows in a database, and I need to be able to repopulate the selected checkboxes should the user want to change the selections made.
Using a checkboxlist is not suitable, as I need to put the checkboxes into different fieldsets on the page. So I guess I´m stuck with the regular .
Now, has anybody got a good idea of how I could: 1) Retrieve the selected checkboxes, preferebly by putting them into a list/set in my action 2) Repopulate the selected checkboxes from a list where the selections has been stored?
Any ideas are much appreciated!