cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorg Heymans>
Subject Re: CForms / flow question
Date Fri, 20 Aug 2004 13:22:46 GMT
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 org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)

the "display" pipeline looks like

<map:generate src="forms/form_template.xml"/>
<map:transform type="forms"/>

Am i doing something deprecated/forbidden/stupid here?

Bruno Dumon wrote:

> On Fri, 2004-08-20 at 14:35, Jorg Heymans wrote:
>>I want to continuously display a form (the submit results are in another 
>>frame), saving the widgets' state in between submits.
>>so i do
>>   var form = new Form(...);
>>   form.showForm("blabla");
>>   //some call here to save the forms state to itself
> a form object contains the forms state, so there's no need to 'save it
> to itself', simply putting the "new Form(...)" above the while should do
> it.
>>Which method call am I missing? I am looking at userdocs/flow/api.html 
>>but the Form object is not documented there. Looking at the 
>>source in the form block i can't see anything related .
> the javascript Form object is declared in the Form.js file, which also
> contains some docs.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message