Re: html:checkbox default value

2004-09-12 Thread Rick Reumann
Erez Efrati wrote the following on 9/12/2004 7:03 AM: If I put it in the form bean constructor wouldn't it cause the field value to be always "true" no matter if the user unchecks it and submit the form. As far as I can recall a checkbox field should be reset to false before the form population. I

RE: html:checkbox default value

2004-09-12 Thread Erez Efrati
--- From: Craig McClanahan [mailto:[EMAIL PROTECTED] Sent: Sunday, September 12, 2004 1:38 AM To: Struts Users Mailing List Subject: Re: html:checkbox default value The values displayed on the page are copied from the form bean, so the right answer is to set the value of the "schedule" property

Re: html:checkbox default value

2004-09-11 Thread Craig McClanahan
The values displayed on the page are copied from the form bean, so the right answer is to set the value of the "schedule" property in your form bean to true. This can be done in the form bean constructor (if you want this initial value all the time), or -- more typical for an update scenario -- yo

RE: html:checkbox default value

2004-09-11 Thread Erez Efrati
t' Subject: html:checkbox default value I am trying to set the default value of a checkbox to 'checked' by putting: but somehow it does not check it. The produced HTML gives me What am I missing here? Thanks, Erez ---

html:checkbox default value

2004-09-11 Thread Erez Efrati
I am trying to set the default value of a checkbox to 'checked' by putting: but somehow it does not check it. The produced HTML gives me What am I missing here? Thanks, Erez