Hi,
The problem is, when the checkbox is unchecked, the value passed is null and
not false.
So in the action class you should check if the form bean checbox property is
null...then set it to false explicitly.
Regards
Rajani
-Original Message-
From: Marc L. Veary [mailto:[EMAIL PROTECTED]
: Wednesday, April 21, 2004 4:51 AM
To: 'Struts Users Mailing List'
Subject: RE: Problem with html:checkbox
Brilliant.
Thanks for the help.
Kind regards,
--
Marc
-Original Message-
From: Rajani [mailto:[EMAIL PROTECTED]
Sent: 21 April 2004 09:43
To: Struts Users Mailing List; [EMAIL
: Takhar, Sandeep [mailto:[EMAIL PROTECTED]
Sent: MiƩrcoles, 21 de Abril de 2004 09:11 a.m.
To: Struts Users Mailing List
Subject: RE: Problem with html:checkbox
Hmmm... That is interesting because I was always under the assumption
that the setter is never called when there is no value
-
From: Takhar, Sandeep [mailto:[EMAIL PROTECTED]
Sent: MiƩrcoles, 21 de Abril de 2004 09:11 a.m.
To: Struts Users Mailing List
Subject: RE: Problem with html:checkbox
Hmmm... That is interesting because I was always under the assumption
that the setter is never called when there is no value
' the form to the original values.
Kind regards,
--
Marc
-Original Message-
From: Takhar, Sandeep [mailto:[EMAIL PROTECTED]
Sent: 21 April 2004 14:29
To: Struts Users Mailing List
Subject: RE: Problem with html:checkbox
I think reset because you may change validation at some point
5 matches
Mail list logo