That seems to be the cleanest way to handle it.  Thanks.

Dave

-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] Behalf Of Lionel
Sent: Monday, August 23, 2004 9:42 AM
To: [EMAIL PROTECTED]
Subject: Re: Default html:checkbox to true


Ellingson, David wrote:
> It seems like this question would have been asked before, but I
> couldn't find an answer in the archives.  I am able to successfully
> use the html:checkbox tag.  However, this tag seems to be trickier to
> use when you want to default the box to "checked".  Simply setting
> the form attribute to true won't work, since an unchecked value will
> not be submitted and the form attribute will remain true.

why don't you validate the value sent by the chekbox in the validate method
?
Set your form attribute to false if no parameter is sent by your form.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to