CForms & flow question

2004-07-23 Thread Timur Izhbulatov
Hi all! I have two functions that handle two corresponding pipelines. They use the same form model, template and binding definitions and the same pipeline to show the form (please, see attached files for details). The frist function works almost as expected but the second one fails when it wha

CForms / flow question

2004-08-20 Thread Jorg Heymans
Hi, I want to continuously display a form (the submit results are in another frame), saving the widgets' state in between submits. so i do while(true){ var form = new Form(...); form.showForm("blabla"); //some call here to save the forms state to itself } Which method call am I missing? I a

Re: CForms & flow question

2004-07-25 Thread Timur Izhbulatov,,,
On Fri, Jul 23, 2004 at 04:41:36PM +0400, Timur Izhbulatov wrote: Sorry, some attachments have been deleted. Here they are: //- //client.js: //-- cocoon.load("flow/common/document.js"); cocoon.load("resource://org/apache/cocoon/forms/flow/javascript/Form.js"); // var pipelineUtil

Re: CForms / flow question

2004-08-20 Thread Bruno Dumon
On Fri, 2004-08-20 at 14:35, Jorg Heymans wrote: > Hi, > > I want to continuously display a form (the submit results are in another > frame), saving the widgets' state in between submits. > > so i do > > while(true){ >var form = new Form(...); >form.showForm("blabla"); > >//some ca

Re: CForms / flow question

2004-08-20 Thread Jorg Heymans
ugh how obvious, thanks Bruno. Actually I don't think i need continuations for my usecase, and I read about the difference between sendPage() and showForm(). So i changed the showForm call to cocoon.sendPage("display", {"CocoonFormsInstance": form}); and i'm getting a classcastexception at at

Re: CForms / flow question

2004-08-20 Thread Bruno Dumon
On Fri, 2004-08-20 at 15:22, Jorg Heymans wrote: > ugh how obvious, thanks Bruno. > > Actually I don't think i need continuations for my usecase, and I read > about the difference between sendPage() and showForm(). > > So i changed the showForm call to >cocoon.sendPage("display", {"CocoonFor