Nicolas Maisonneuve wrote:
ok maybe i'm not very clear:
the binding framework is good but useless for simple/natural binding. Exemple of a form:
<form> <field name="title"/> <booleanfield name"field"/>
<repeater name="contacts"> <field name="name" /> ...</repeater> ... a useful tool/feature would be:
var my bean = form.modelToPojo()
the bean will have this structure bean.title
bean.field
bean.contacts[i].name
etc...
and form.pojoTomodel(bean) -----------------
It's possible to do this ? if yes how do you this ?
Two solutions come to mind:
- a new <fb:bean> binding, that would bind a full widget subtree to a POJO.
- a new form.createBeanBinding() that would essentially do the same as a binding file with a single <fb:bean> instructions, thus avoiding to write a seperate file when there's only a bean to bind.
Sylvain
-- Sylvain Wallez Anyware Technologies http://apache.org/~sylvain http://anyware-tech.com Apache Software Foundation Member Research & Technology Director
