cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <joerg.heini...@gmx.de>
Subject Re: Usage of "form.createBinding" compared with "form.load"
Date Mon, 13 Dec 2004 13:04:06 GMT
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message