cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joose Vettenranta <jo...@iki.fi>
Subject Re: cforms problem when trying jx
Date Fri, 08 Jul 2005 12:17:09 GMT

Marc Salvetti kirjoitti 8.7.2005 kello 13:25:

> Hello,
>
> i had this kind of pb before because of the binding.
> either you are calling new Form(form-definition) in your flow where  
> you are not supposed to
> or you use the handleForm function from the sample and didn't  
> supplied a binding-uri

Hmm.. Not quite understanding where the problem is, but I have like  
this:

cocoon.load("resource://org/apache/cocoon/forms/flow/javascript/ 
Form.js");

function foo () {

....

   for (var i=0; i<3; ++i) {
     var form = new Form("defs/bean-"+(i+1)+"-model.xml");
     form.createBinding("defs/bean-"+(i+1)+"-binding.xml");
     form.load (bean);
     k = form.showForm ("internal/bean/wizard-"+(i+1)+".form");
     form.save (bean);
   }
...

}

- Joose

--
"Always remember that you are unique, just like everyone else!"
* http://iki.fi/joose/ * joose@iki.fi * +358 44 561 0270 *


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message