cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivelin Ivanov" <ive...@iname.com>
Subject Re: Cocoon Form Handling
Date Sun, 17 Mar 2002 15:19:20 GMT

----- Original Message -----
From: "Torsten Curdt" <tcurdt@dff.st>
To: <cocoon-dev@xml.apache.org>; "Ivelin Ivanov" <ivelin@sbcglobal.net>
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: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message