datni / gwt-pectin

Automatically exported from code.google.com/p/gwt-pectin
0 stars 0 forks source link

Update WidgetBinder to bind plain ValueModels to a basic HasValueSetter<T> style widget. #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Currently the WidgetBinder only binds FieldModels to HasValue instances. 
There are cases where it would be nice to bind a simple value model (e.g.
from a BeanModelProvider) to an editor/display widget.  This would allow
the widgetbinder to be used where a form doesn't make sense.

Should support:
ValueModel<T> bound to HasValueSetter<T>, Destination<T>
MutableValueModel<T> bound to HasValue<T>, HasValueSetter<T>, Destination<T>

I'm reluctant to bind ValueModel<T> to HasValue<T> as there's no way for
the binding to handle value change events from the widget (and the only
option would be to throw a runtime which would be quite a rake).

Original issue reported on code.google.com by andrew.pietsch on 20 Apr 2010 at 3:43

GoogleCodeExporter commented 8 years ago

Original comment by andrew.pietsch on 20 Apr 2010 at 3:43

GoogleCodeExporter commented 8 years ago
Fixed in 0.8

Original comment by andrew.pietsch on 9 Jun 2010 at 2:35