You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by av...@za.safmarine.com on 2002/11/11 15:03:22 UTC

/ /OREF:CPTD2D27 RE: checkbox problem

This posting is useful for dealing with checkboxes:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg37244.html



                                                                                                                                       
                      "Saini, Deepank"                                                                                                 
                      <deepank.saini@c         To:      "'Struts Users Mailing List'" <st...@jakarta.apache.org>                 
                      gey.com>                 cc:                                                                                     
                                               Subject: RE: checkbox problem                                                           
                      11/11/2002 03:46                                                                                                 
                      PM                                                                                                               
                      Please respond                                                                                                   
                      to "Struts Users                                                                                                 
                      Mailing List"                                                                                                    
                                                                                                                                       
                                                                                                                                       
                                                                                                                                       
                                                                                                                                       
                                                                                                                                       




well i am not sure why it should show true if it has been unchecked,
but one
last shot, if u r calling a javascript function on the submit, the
problem
could well be in the javascript function.
Bye the way do u have a submit button or r u caling a javascript
function
onchange of the checkbox?

-----Original Message-----
From: Hirschmann, Bernhard [mailto:Bernhard.Hirschmann@t-systems.com]
Sent: Monday, November 11, 2002 7:12 PM
To: 'Struts Users Mailing List'
Subject: AW: checkbox problem



Thanks for your comment, but I'm not sure if that's the problem.

Here is the scenario:
1.) While populating the form, the value is true.
2.) Then the user disables the checkbox - for setting the value to
false.
3.) Submit occurs.
4.) In the action I check the value and I see that it is true.

Do I really have to reset the form for such a scenario?

Regards,
Bernhard


-----Ursprüngliche Nachricht-----
Von: James Mitchell [mailto:jmitchtx@telocity.com]
Gesendet: Montag, 11. November 2002 14:36
An: Struts Users Mailing List
Betreff: RE: checkbox problem


You need to set it to false in the reset() method.

James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"If you were plowing a field, which would you rather use? Two strong
oxen or
1024 chickens?"
- Seymour Cray (1925-1996), father of supercomputing


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>

____________________________________________________
This message contains information that may be privileged or
confidential and
is the property of the Cap Gemini Ernst & Young Group. It is intended
only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy,
disseminate,
distribute, or use this message or any part thereof. If you receive
this
message in error, please notify the sender immediately and delete all
copies
of this message.

--
To unsubscribe, e-mail:   <
mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <
mailto:struts-user-help@jakarta.apache.org>






--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>