You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by JeanX <je...@pacificnet.com> on 2001/05/15 05:21:03 UTC

is it a bug of CheckboxTag

Hi struts-user,

If I uncheck a checkbox, there is no corresponding parameter pair in request.
So I can not get the right status of certain form.
How to resolve it ?


:=)
Best regards,
JeanX
pacificnet.com(GZ)


Re: is it a bug of CheckboxTag

Posted by Jim Richards <gr...@cyber4.org>.
JeanX wrote:
> If I uncheck a checkbox, there is no corresponding parameter pair in request.
> So I can not get the right status of certain form.
> How to resolve it ?

In you ActionForm reset method you need to set all the checkbox values
to false, as reset() is called before the form is populated.

That way, the only values that get sent are the ones that need to be
set to true, and the ActionForm is correctly set.

RE: is it a bug of CheckboxTag

Posted by Niall Pemberton <ni...@btInternet.com>.
This is an HTML issue.

Lots of discussion in the archives about this:

A recent one:

http://www.mail-archive.com/struts-user@jakarta.apache.org/msg06473.html 

Niall

> -----Original Message-----
> From: JeanX [mailto:jeanx@pacificnet.com]
> Sent: 15 May 2001 04:00
> To: struts-user
> Subject: is it a bug of CheckboxTag
> 
> 
> Hi struts-user,
> 
> If I uncheck a checkbox, there is no corresponding parameter pair 
> in request.
> So I can not get the right status of certain form.
> How to resolve it ?
> 
> 
> :=)
> Best regards,
> JeanX
> pacificnet.com(GZ)
> 
>