You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Michael Binette <mb...@mediaone.net> on 2001/05/12 14:20:08 UTC
Form Reset
The documentation mentions using one form bean to handle multiple forms such
as when you have a wizard type of user interface that spreads the form's
fields over various pages.
But, everytime the next page is called, ActionServlet.processPopulate calls
the form beans reset method and then copies in the form's fields.
How is it possible to keep existing fields already filled in? Or, am I
supposed to copy the fields I need to keep in the Action class and then move
to the next view?
--
Thanks,
Michael Binette
Re: Form Reset
Posted by Tharwat Abdul-Malik <ta...@grandtalent.com>.
In your reset method include a condition where the values are only reset on
the last page of the form.
----- Original Message -----
From: "Michael Binette" <mb...@mediaone.net>
To: "Struts-User" <st...@jakarta.apache.org>
Sent: Saturday, May 12, 2001 8:20 AM
Subject: Form Reset
> The documentation mentions using one form bean to handle multiple forms
such
> as when you have a wizard type of user interface that spreads the form's
> fields over various pages.
>
> But, everytime the next page is called, ActionServlet.processPopulate
calls
> the form beans reset method and then copies in the form's fields.
>
> How is it possible to keep existing fields already filled in? Or, am I
> supposed to copy the fields I need to keep in the Action class and then
move
> to the next view?
>
> --
> Thanks,
> Michael Binette
>
>