----- Original Message -----
From: "Torsten Curdt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Ivelin Ivanov" <[EMAIL PROTECTED]>
Sent: Sunday, March 17, 2002 8:57 AM
Subject: Re: Cocoon Form Handling
>
> <snip/>
>
> > > page1: button "next" -> populate user/name + user/email +
> > user/committer
> > > page2: button "next" -> populate user/works-on-other-projects
> >
> > Typicly my Actions have a switch statement based on the button which was
> > pressed.
> > Or if using Cocoon's action convention this can be achieved with an
action
> > set as well.
> > In both cases the idea is that the Action has an idea of where you are
with
> > the wizard navigation and resets just these fields, which are necessary
to
> > correctly populate the bean in the current step. I.e.
> >
> > act(...)
> > {
> > if (request.getParameter("command").equals("page1"))
> > resetCommiterField
> > else if (request.getParameter("command").equals("page2"))
> > resetWorksOnOtherProjectsField
> > ...
> > bindFormToBean
> > ...
> > }
>
> ok - then we are on the same track... but please consider the population
> syntax I proposed. I think resetting something is misleading and it works
> fine without.
I certainly would. You put a lot more thought into your code than I have for
the snippet above.
Can you please paste your code <here/> so that I can match exactly your
syntax to the one above?
>
> I have already implemented an abstraction for the binding. So binding a
> bean is the same a having no a simple DOM as instance store instead.
Yammy!
How does one choose JavaBean vs DOM binding?
Ivelin
> --
> Torsten
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]