vaadin - BeanItem not updating associated Field more than one, when changing property by hand -
i'm scratching head, trying work out why beanitem's property isn't updating component field's value - more once :(.
class mycomponent extends customcomponent { textfield firstnames beanitem<myobject> bean = new beanitem<myobject>(new myobject()) mycomponent() { layout layout = new formlayout() setcompositionroot(layout) firstnames = new textfield("first names") layout.addcomponent(firstnames) fieldgroup binder = new fieldgroup(bean) binder.bindmemberfields(this) } void setfromaccount(myobject newobject) { bean.getitemproperty("firstnames").setvalue(newobject.firstnames) } }
the first time call setfromaccount
value of firstnames text field updated on screen. second time isn't, , first value persists.
does know what's going on? thought whenever set value on underlying property updated through internal listeners. why happening first time?
Comments
Post a Comment