cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dev at weitling <d...@weitling.net>
Subject Re: redirectTo not executed
Date Tue, 27 May 2008 19:46:03 GMT
Hi André,


DAVIGNON Andre - CETE NP/DIODé/PANDOC wrote:
> In 2.1.10, i'm working on a form with this flowscript :
>
> var form = new Form(cocoon.parameters.form);
> form.createBinding(cocoon.parameters.binding);
> ...
> form.load(document);
> form.showForm(cocoon.parameters.show);
> cocoon.redirectTo(cocoon.parameters.redirect);
>
> cocoon.sendPage is never executed unless i comment 
> FOM_Cocoon.suicide() in Form.js.
>
> I get a good response (HTML of the right page, checked with Firebug) 
> but the browser doest not redirect to the desired page.

showForm() hibernates the flow execution, waiting for a continuation. As 
long as you make a request in your browser (e.g. submit the form) and 
the server doesn't continue the flow, you won't reach the redirect command.

Hope this helped,
Florian

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


Mime
View raw message