Re: Stateless form.processForm

2014-11-13 Thread Barbara Slupik
Hello Do you have main_template.xml in your main-display-pipeline? Perhaps is is enough to define your form template without continuation, like ft:form-template action=xxx method=POST. Also perhaps you don't need any processing in flow.js after form.showForm(main-display- pipeline, data).

Re: Stateless form.processForm

2014-11-13 Thread Oliver Bienert
Hi, it was may mistake, of course it's wrong to use the request object as a parameter to the function processForm. Instead I have to pass it the same viewdata (A Javascript object) as when sending the form. And yes, main_template is in the main-display-pipeline and I changed the action attribute

Stateless form.processForm

2014-11-12 Thread Oliver Bienert
Hello Cocoon users, I have created a cocoon 2.2 project. It uses cforms to present a record from an h2 database to the user. I use continuations and a page redirect to switch between records: var form = new Form(cocoon://resource/internal/main_definition.xml);