On Thu, 2003-09-11 at 19:38, Christopher Oliver wrote:
> Bruno Dumon wrote:
>
> >On Wed, 2003-09-10 at 09:54, Sylvain Wallez wrote:
> >
> >
> >>Christopher Oliver wrote:
> >>
> >>
> >>
> >>>BTW that flowscript code was written with the intention of supporting
> >>>multi-page Woody forms with automated back/forward navigation as in
> >>>JXForms. However, when I looked into implementing this I discovered
> >>>that Woody forms cannot be presented in multiple pages because
> >>>apparently the entire form is "submitted" with each request. As a
> >>>result the fields that are not presented in the first page fail
> >>>validation because they have no values. Or am I missing something?
> >>>
> >>>
> >>No, you got it right : Woody always validates the whole form.
> >>
> >>
> >
> >Yep, though it is possible to make a container widget that only
> >delegates request processing and validation to a subset of its widgets,
> >ie something like:
> >
> ><wd:multipage id="something">
> > <wd:page id="1">
> > <wd:field .... />
> > <wd:field .... />
> > </wd:page>
> > <wd:page id="2">
> > <wd:field .... />
> > <wd:field .... />
> > </wd:page>
> ></wd:multipage>
> >
> >depending on the value of some request parameter, the wd:multipage
> >widget would only let a certain group of widgets process the request.
> >
> >Another approach to collecting data over multiple pages would simply be
> >to create multiple (different) forms, which is of course already
> >possible today.
> >
> >What's the best solution probably depends on the use case, I didn't felt
> >the need yet for the first one.
> >
> >
> Unfortunately that makes the current integration of Woody with
> Flowscript close to useless.
if you use the woody() function as entrance point, yes.
> How would you propose to handle multi-page
> forms?
Something like this:
function myfunc()
{
var form1 = new Form(formDefinition1);
var form2 = new Form(formDefinition2);
var form3 = new Form(formDefinition3);
form1.show(...);
form2.show(...);
form3.show(...);
}
and call the myfunc function from the sitemap.
Haven't tried this though (I'm using apples), but I think it should
work.
--
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED] [EMAIL PROTECTED]