|[XWT] Update textfield value if context changed [message #645243]
||Thu, 16 December 2010 08:45
| Wolfgang Herbst
Registered: December 2010
if the underlying context of an UI Element changed, how get's the UI updated? I have following example:
Object context = XWT.findElementByName(e.widget, "Root");
Client clientModel = (Client)XWT.getDataContext(context);
Text clientNameText= (Text) XWT.findElementByName(e.widget, "clientName");
//Something like clientNameText.refresh() ?
If I click a button, the code above gets executed. Is there a way which allows the binding to get automated updated? Calling
wouldn't be nice as the name is already bound to the textfield.
Thanks for any help!
Powered by FUDForum
. Page generated in 0.01583 seconds