cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philipp Rech" <philipp.r...@gmx.de>
Subject Re: passing data from flow to jx (lots of typing)
Date Fri, 05 Nov 2004 12:04:56 GMT
okay sounds good, i think it's time to
look into the binding framework...
thanks guys!
phil



> 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: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 


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


Mime
View raw message