S
sameergn
Hi,
I am trying to render check boxes using an indexed property say
selectedRole[0..n]. Since the Form is request scope, how one should
code the setter method setSelectedRole(int idx), when the form is
submitted. The number of submitted checkboxes are not known and
setSelectedRole(n) can be called in any order.
Is there any better option than keeping the ActionForm in session? With
session scope also, we will end up in same scenario when session
timeout occurs before user submits the page.
We can count #of request parameters starting with "selectedRole[" in
reset() method and then allocate the array, but this looks ugly.
Thanks,
Sameer
I am trying to render check boxes using an indexed property say
selectedRole[0..n]. Since the Form is request scope, how one should
code the setter method setSelectedRole(int idx), when the form is
submitted. The number of submitted checkboxes are not known and
setSelectedRole(n) can be called in any order.
Is there any better option than keeping the ActionForm in session? With
session scope also, we will end up in same scenario when session
timeout occurs before user submits the page.
We can count #of request parameters starting with "selectedRole[" in
reset() method and then allocate the array, but this looks ugly.
Thanks,
Sameer