Databinging - Writable and the opposite path. [message #689095] |
Sun, 26 June 2011 20:13 |
Christophe Bouhier Messages: 937 Registered: July 2009 |
Senior Member |
|
|
Hi,
I am succesfully using a WritableValue to bind between UI widgets (i.e.
various Radio buttons, whereby the selected button will be reflected in
the WritableValue), and a model object in an indirect manner. This
happens by registering a IValueChangeListener on the UI Widgets, which
aggregates the value changes from several UI widgets and update the
WritableValue. So far so good.
I am however struggling to achieve the opposite, which is updating the
UI widgets from the model value. The WritableValue doesn't seem to sync
with the model value, and perhaps it shoudn't (It's a Writable after
all), but what would be the pattern for updating the UI widgets?
Do I need another binding with a change listener on the model
IValueProperty? (and in similar fashion update the UI widgets through a
value change listener on the property?).
Thank You, Christophe
|
|
|
Powered by
FUDForum. Page generated in 0.02669 seconds