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.cocoon.forms.transformation.FormsPipelineConfig.findForm(FormsPipelineConfig.java:178)
at org.apache.cocoon.forms.transformation.EffectWidgetReplacingPipe$FormHandler.process(EffectWidgetReplacingPipe.java:288)
at org.apache.cocoon.forms.transformation.EffectPipe.startElement(EffectPipe.java:412)
at org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTeePipe.java:83)
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?

Jorg
Bruno Dumon wrote:

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 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 Form.java 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to