[1] http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=109820425417800&w=2
The problem with your use case described in that mail is simply that form.save() is not called and so no binding is executed at all. Otherwise you have a problem if the form is not submitted at the end: You won't get the original model back. If that's not a problem for you you can "unroll" the form.showForm() function and add a form.save() into the while loop.
Actually tried this now ...
i replaced
var form = new Form(...);
form.createBinding(...);
form.load(mybean);
form.showForm("uri");with
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.
How do i differentiate between the repeater action submit and the form submit? It also doesn't same to be executing the save properly because the repeater is not updating anymore after adding/removal.
Or did i not correctly unroll the loop in the first place?
Regards Jorg
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
