Hi Michael,
That's a normal behavior. When you first check your
check box, your browser sends the value to your Struts application, and it
modify the corresponding property in your ActionForm. Next time, when you
uncheck the checkbox, no value is transmitted by the browser (empty values in
HTML forms are not transmitted), and your ActionForm property keeps set (if you
haven't removed it, but generally you don't if you want to display the other
properties...).
In Struts v1.0, there's a reset method that is
called just before initializing the form. From that method, you can decide to
reset all the checkboxes to their value from a database, for
instance.
If you're using v0.5, search in the mailing list
for different solutions (but incompatible with v1.0).
Pierre Métras
|
Title: checkbox-problems ?
- checkbox-problems ? Laufer, Michael
- RE: checkbox-problems ? Pierre Métras
- RE: checkbox-problems ? Aur Gal