cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bart Molenkamp" <b.molenk...@bizzdesign.nl>
Subject RE: passing data from flow to jx (lots of typing)
Date Fri, 05 Nov 2004 10:57:39 GMT
[...]

> If not i will just keep
> on typing... ;) Does the "binding framwork" make that step obsolete?
> 

Yes, the binding framework makes this step obsolete. You can easily bind
your form to a JavaBean or an XML document. Then pass this to your
JXTemplate. In flow code, this are just a few lines of code:

var myForm = new Form("form.xml");
myForm.createBinding("form-binding.xml");

myForm.show("form.html");
myForm.save(myModel);
cocoon.sendPage("result.html", {model: myModel});

And that's it. When you add/remove fields to your form, you don't have
to change the code here.


Bart.

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


Mime
View raw message