struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hubert Rabago" <hrab...@gmail.com>
Subject Re: Form population and locale
Date Mon, 22 Jan 2007 19:54:50 GMT
Don't do it in the form's reset().  Accd. to the javadoc [1]:

"In practice, the only properties that need to be reset are those
which represent checkboxes on a session-scoped form."

Hubert

[1] http://struts.apache.org/1.x/apidocs/org/apache/struts/action/ActionForm.html

On 1/20/07, Paul Benedict <pbenedict@apache.org> wrote:
> I believe you could try to do this in the form's constructor or reset()
> method?
>
> Hubert Rabago wrote:
> > Are you talking about prepopulating the form?  Yes, a FormUtils method
> > helps with that.  I don't know if that qualifies as manually
> > populating the form, though.  The FormUtils method does a lot of the
> > manual work, such as matching form fields with their POJO field
> > counterparts, considering the locale, converting and parsing data as
> > needed, possibly handling nested beans/nested forms as well.
> >
> > Hubert
> >
> > On 1/19/07, Zero <zero@libertysurf.fr> wrote:
> >> Hi,
> >>
> >> Thanks ! It is exactly what I need. I'm going to test it...
> >> Must I always populate manually all the forms (with FormUtils) ?
> >>
> >> Regard,
> >> Zero
> >>

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


Mime
View raw message