Bart Molenkamp wrote:

[...]



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.


And then use the FormTransformer to put values into the form given <ft:> entries in your template.

Upayavira



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



Reply via email to