m-m-m / util

Mature Modular Meta-Framework
http://m-m-m.sourceforge.net
Apache License 2.0
10 stars 5 forks source link

mmm-client-ui-widget: setValue not working properly before WidgetAdapter has been created #76

Closed hohwille closed 11 years ago

hohwille commented 11 years ago

If you care a new UiWidget*Field and call setValue with some value and then attach the widget to the UI you will not see the value. Only after the widget is attached and the WidgetAdapter has been created, setValue works as expected.

hohwille commented 11 years ago

AbstractUiWidgetField.initializeWidgetAdapter:

VALUE value = getValue();

changed to

VALUE value = getRecentValue();

fixed it as getValue() is reading the value from the WidgetAdapter that is just created.