You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2005/04/26 07:43:21 UTC

DO NOT REPLY [Bug 34612] New: - Unchecked checkboxes aren't set in Forms..

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34612>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34612

           Summary: Unchecked checkboxes aren't set in Forms..
           Product: Struts
           Version: Unknown
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: blocker
          Priority: P4
         Component: Controller
        AssignedTo: dev@struts.apache.org
        ReportedBy: ivan@ablogic.net


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.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org