struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sgarlata Matt" <sgarlata_m...@bah.com>
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
list.

Matt
----- Original Message ----- 
From: "Wendy Smoak" <Wendy.Smoak@asu.edu>
To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
Sent: Wednesday, December 17, 2003 3:03 PM
Subject: RE: Checkboxes with session-scoped DynaActionForms


> From: Sgarlata Matt [mailto:sgarlata_matt@bah.com]
> 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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message