More in detail, how would you do that? Will the generated boilerplate also fire events?My initial thoughts when thinking about extending the current
providers would be that I'd annotate bean properties that were to be
exposed to pectin (e.g. something like @BeanPropertySource) and let
the deferred bindings crunch out the boiler plate.
I would love to get rid of the boilerplate in the bean, but I can't seem to figure out how to.
You don't want so subclass the bean and add the mechanism there, because the bean can
originate from anywhere (all my beans will come from server-side).
But for me the boilerplate won't be that hard to control, since I will generate all my bean
classes from my server-side python model classes.
That would be really nice. If you figure out a way to do that I would be really glad! ;)
The deferred
binding can also guarentee the property path is valid both in terms of
name and type when the value model is created. This has always been
important since it means that a unit test that simply instantiates the
form proves the property paths are all ok.
i.e. `fieldOfType(String.class).boundTo(beanProvider, "a.b.c")` should
barf if the properties a, b or c aren't defined and if c isn't an
instance of String.
Btw, the gwtx package has those "bounded properties" classes that I used
in my experiment.
PropertyListener and friends. Maybe it's better to depend on a package
like that than to
roll your own.