question regarding DynaActionForm.reset()

2003-03-31 Thread Donald Ball
The API for ActionForm.reset() says it will, Reset all bean properties to their default state. This method is called before the properties are repopulated by the controller servlet. Why then does the default reset() method for DynaActionForm do nothing? DynaActionForm knows about its own

Re: question regarding DynaActionForm.reset()

2003-03-31 Thread Craig R. McClanahan
On Mon, 31 Mar 2003, Donald Ball wrote: Date: Mon, 31 Mar 2003 13:39:33 -0500 From: Donald Ball [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: question regarding DynaActionForm.reset() The API for ActionForm.reset() says

RE: question regarding DynaActionForm.reset()

2003-03-31 Thread Moore, Scott R.
regarding DynaActionForm.reset() On Mon, 31 Mar 2003, Donald Ball wrote: Date: Mon, 31 Mar 2003 13:39:33 -0500 From: Donald Ball [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: question regarding DynaActionForm.reset() The API

Re: question regarding DynaActionForm.reset()

2003-03-31 Thread Donald Ball
Craig R. McClanahan wrote: The API for ActionForm.reset() says it will, Reset all bean properties to their default state. This method is called before the properties are repopulated by the controller servlet. Why then does the default reset() method for DynaActionForm do nothing? DynaActionForm

Re: question regarding DynaActionForm.reset()

2003-03-31 Thread Donald Ball
Moore, Scott R. wrote: 1) Does this mean that the following statement in Chuck Cavanaugh's Programming Jakarta Struts (O'Reilly) is wrong?: Unlike with the ActionForm Class, where the default behavior for reset() does nothing, the reset() method in the DynaActionForm class resets all the

RE: question regarding DynaActionForm.reset()

2003-03-31 Thread Wendy Smoak
Scott wrote: 2) Does DynaValidatorForm.reset() also do nothing? According to the Javadoc, it should Reset all properties to their default values, however, when I run the following code snippet in my Action class (the variable form is the ActionForm object that is given to the method):

RE: question regarding DynaActionForm.reset()

2003-03-31 Thread Wendy Smoak
Donald wrote: why do you call reset() before manipulating the bean anyway? isn't it better to explicitly keep the old values around before setting any new ones based on the incoming request? Without reset, you'd never be able to 'un-check' an HTML checkbox. -- Wendy

Re: question regarding DynaActionForm.reset()

2003-03-31 Thread Donald Ball
Wendy Smoak wrote: Donald wrote: why do you call reset() before manipulating the bean anyway? isn't it better to explicitly keep the old values around before setting any new ones based on the incoming request? Without reset, you'd never be able to 'un-check' an HTML checkbox. Sure you would -

RE: question regarding DynaActionForm.reset()

2003-03-31 Thread Chen, Gin
PM To: Struts Users Mailing List Subject: Re: question regarding DynaActionForm.reset() Wendy Smoak wrote: Donald wrote: why do you call reset() before manipulating the bean anyway? isn't it better to explicitly keep the old values around before setting any new ones based on the incoming

Re: question regarding DynaActionForm.reset()

2003-03-31 Thread Donald Ball
Chen, Gin wrote: HTML does not submit a null for an unchecked checkbox. So if you have foo=bar you would have nothign if foo was not checked. If you try it with a GET HTML form you'll see that behavior. you're so right, mea culpa. i can't believe i misremembered about that inanity. i'll crawl

RE: question regarding DynaActionForm.reset()

2003-03-31 Thread Moore, Scott R.
and Donald for your replies earlier. --Scott [EMAIL PROTECTED] -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 3:45 PM To: 'Struts Users Mailing List' Subject: RE: question regarding DynaActionForm.reset() Scott wrote: 2) Does