struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton" <niall.pember...@blueyonder.co.uk>
Subject Re: reset method in ActionForm
Date Tue, 03 Jan 2006 18:38:41 GMT
Reset gets called just before the form is populated and the most common use
is for resetting boolean properties set using checkboxes. This is because if
the checkbox is not "checked" browsers do no submit a value, so the
"population" mechanism doesn't set the property to "false" if the checkbox
is "un-checked".

Niall

----- Original Message ----- 
From: "fea jabi" <zyxrm@hotmail.com>
Sent: Tuesday, January 03, 2006 6:22 PM


> When exactly this method has to be used and when does this get called?
>
> Why do the checkboxes have to be reset?
>
> Prepopulating the formbean is done in Action class. hence, it's not clear
to
> me the exact use of using the reset method.
>
> Thanks.



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


Mime
View raw message