Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Incomplete
-
Future
-
None
-
None
-
Operating System: Windows XP
Platform: PC
-
34612
Description
I have this scenario:
in my form in the reset() I set the checkbox to "on".
If the user turns it off, I'd expect that despite my reset's actions, a
setCheckbox(null) would be called by struts. But that method is never called.
On the surface, everything seems to perform fine. The user unchecks the
checkbox and clicks submit(), which gives him an error (on purpose), which
returs him back to the form, and the checkbox is empty. However, in the actual
Form bean, the checkbox is still set to "on" (because nobody ever unchecked it)
(btw, I keep it as a String - I believe that is the way).
As a result, everything appears normal, but in fact nothing is working. Took me
2 hours to figure that out.