On 13.12.2004 12:34, Philipp Rech wrote:

function myBinding(form) {
   var bean = new Packages.foo.bar.cocoonBean();
   form.load(bean);
   form.showForm("registration-display-pipeline");
   form.save(bean);
   cocoon.sendPage("registration-success-pipeline", {"model": bean});
}

how does " form.createBinding("my_binding.xml"); " (which i found in the flowscript of the samples folder) work? Is it diffrent/better than my version? If i use form.createBinding
do i still have to use the same sitemap as above?

You need both. createBinding with the binding file name tells the forms framework how to bind, load and save tells what to bind to.


Joerg

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



Reply via email to