Hello,
I need to save a dynamically created list of radio buttons to the
database. In order to give the administrator the possibility to give
users roles for certain departments, I am creating a dynamic list of
radio buttons, wich looks like this:
DepartmentNo RightsUser RightsKeyUser Rights
Accounting ooo
IT oo
o
...an so on, where "o" is a radio button.
The departments come out of the database, via an ArrayList containing
Key/Value beans, wich I have declared in the ActionForm. To display
them, I use following code:
This renders following html-code:
No
Rights
User
KeyUser
No Rights
User
KeyUser
Up to here, everything works fine.
To my question:
how do I save this dynamically created list, since I don't know how many
fields to declare in the ActionForm wich, by the way, is of the type
DynaActionForm?
Can I maybe store these fields back in the ArrayList?
Thank you very much for your help!
Sebastian