You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by DAVIGNON Andre - CETE NP/DIODé/PANDOC <An...@developpement-durable.gouv.fr> on 2008/05/22 11:09:01 UTC
Ajax form global validation
Hi,
I have an Ajax form (<ft:form-template method="POST" ajax="true"
action="#{$cocoon/continuation/id}"> with following flowscript :
var form = new Form(cocoon.parameters.form);
form.createBinding(cocoon.parameters.binding);
...
form.load(document);
form.showForm(cocoon.parameters.show);
cocoon.sendPage(cocoon.parameters.redirect);
Ajax actions work well (adding and removing repeater rows,
etc...) but global validation of the form with a fd:submit has no effect.
The form seems not to go out from the continuation of
form.showForm(cocoon.parameters.show) and sendPage
is not executed.
Would anyone have an idea ?
André Davignon
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Ajax form global validation
Posted by DAVIGNON Andre - CETE NP/DIODé/PANDOC <An...@developpement-durable.gouv.fr>.
Hi,
> I don't completely understand the details but from what I've read here this
> type of form validation is not possible with ajax enabled.
>
> http://markmail.org/message/2loa7qecgc6d33yd
But it seems to be the type of validation used in
cocoon/samples/blocks/forms/do-dynaRepeater.flow (see
http://cocoon.jsp-servlet.net/samples/blocks/forms/do-dynaRepeater.flow):
ajax enabled, different inputs with different id's for ajax actions and
a "submit" widget for the form global validation.
Where am i going wrong ?...
André Davignon
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: Ajax form global validation
Posted by Gary Larsen <ga...@envisn.com>.
Hi,
I don't completely understand the details but from what I've read here this
type of form validation is not possible with ajax enabled.
http://markmail.org/message/2loa7qecgc6d33yd
gary
> -----Original Message-----
> From: "DAVIGNON Andre - CETE NP/DIODé/PANDOC"
> [mailto:Andre.Davignon@developpement-durable.gouv.fr]
> Sent: Thursday, May 22, 2008 10:39 AM
> To: users@cocoon.apache.org
> Subject: Re: Ajax form global validation
>
> >
> > The form seems not to go out from the continuation of
> > form.showForm(cocoon.parameters.show) and sendPage
> > is not executed.
>
> To be more precise, the form validation does post data, the POST is
> matched by a pipeline but i get this error :
>
> The requested resource
> "/cocoon2.1.10notix/Test/%5Bobject%20HTMLInputElement%5D" could not be
> found
>
> i can't understand where this %5Bobject%20HTMLInputElement%5D comes from.
>
> Help appreciated.
>
> André Davignon
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Ajax form global validation
Posted by DAVIGNON Andre - CETE NP/DIODé/PANDOC <An...@developpement-durable.gouv.fr>.
>
> The form seems not to go out from the continuation of
> form.showForm(cocoon.parameters.show) and sendPage
> is not executed.
To be more precise, the form validation does post data, the POST is
matched by a pipeline but i get this error :
The requested resource
"/cocoon2.1.10notix/Test/%5Bobject%20HTMLInputElement%5D" could not be found
i can't understand where this %5Bobject%20HTMLInputElement%5D comes from.
Help appreciated.
André Davignon
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org