struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sgarlata Matt" <>
Subject Re: Checkboxes with session-scoped DynaActionForms
Date Wed, 17 Dec 2003 21:46:53 GMT
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

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

> From: Sgarlata Matt []
> 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:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message