On 11.11.2004 11:28, Jorg Heymans wrote:

 var form = new Form(...);
 form.createBinding(...);
 form.load(mybean);
 while(true){
   cocoon.sendPageAndWait("uri", {"CocoonFormsInstance" : form.form});
   print("submitted");
   form.save(mybean);
 }

but ofcourse it doesn't exit the while loop.

The function showForm() is a bit more complex. You need at least the this.form.process(formContext) stuff which also returns the value finished for the while loop.


http://svn.apache.org/viewcvs.cgi/cocoon/trunk/src/blocks/forms/java/org/apache/cocoon/forms/flow/javascript/Form.js?rev=54109&view=markup

Joerg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to