ActionForm does not have to correlate to HTML form one-to-one. You can
create one ActionForm with session scope and use nested DTOs/BOs for
each HTML form. For relatives' form you can use a list of nested DTOs.
It is even simpler that you do not need to render a particular
relative, you just enter them.

Michael.

On 8/9/05, Leo Asanov <[EMAIL PROTECTED]> wrote:
> Yes, I am talking about one form per request
> situation. I don't really see how I can use it as it
> is. ActionForm object will be overriden with the
> latest one and all previous data will be lost.
> 
> Ideally I would prefer to have all data stored in the
> session automatically and only when user clicks
> "finish" I would take all ActionForm objects from the
> session and save them into database. Without multiple
> instances of one form it can easily be done.
> 
> Cheers,
> Leo
> 
> > If you just want to have your 'add one more person'
> > button display a page
> > with a form to enter that person's details (i.e.
> > multiple instances of the
> > same form being used one per request) you don't need
> > to do anything special
> > besides make sure your form bean implements reset()
> > appropriately.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to