Wendy & Barrett - Thanks for your help!  Both of your answers helped me fix
the problem I was having with checkboxes and session-scoped DynaActionForms.

Wendy - I feel like the reset method of the DynaActionForm should be able to
automatically take care of checkboxes, perhaps with a little extra help like
specifying clearOnReset="true" or isCheckbox="true" in the <set-property>
element for the property, but oh well... I'm not going to push it on the dev
list.

Matt
----- Original Message ----- 
From: "Wendy Smoak" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, December 17, 2003 3:03 PM
Subject: RE: Checkboxes with session-scoped DynaActionForms


> From: Sgarlata Matt [mailto:[EMAIL PROTECTED]
> Also, It looks like I am going to have to subclass
> DynaActionForm or DynaValidatorForm so that I can reset the
> checkboxes in the reset() method of the form bean.
> That seems like quite a pain (kind of
> defeats the purpose of Dyna forms, doesn't it?).

"Dyna" forms merely free you of the need to write all those get/set
methods.  Defining the properties in struts-config.xml does not mean you
can't or shouldn't override the 'reset' and/or 'validate' methods.

-- 
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management





---------------------------------------------------------------------
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