-
1. Re: How to bind a DateBox with Errai binding?
calderas Apr 29, 2015 11:56 AM (in response to calderas)Into the class org.jboss.errai.databinding.client.BindableProxyAgent
in the code:
....
handlerRegistration = ((HasValue) widget).addValueChangeHandler(new ValueChangeHandler() {
@Override
public void onValueChange(ValueChangeEvent event) {
Object oldValue = proxy.get(property);
Object newValue = toModelValue(propertyTypes.get(property).getType(), widget, event.getValue(), converter);
proxy.set(property, newValue);
updateWidgetsAndFireEvent(property, oldValue, newValue, widget);
}
....
this line: proxy.set(property, newValue); throws the NonExistingPropertyException for "fecha"
Thanks,
-
2. Re: How to bind a DateBox with Errai binding?
csa Apr 29, 2015 12:23 PM (in response to calderas)Hi,
This means that "fecha" is not a valid Java property or at least it wasn't recognized as one. Do you have getters/setters for it? Can you share your complete bindable/data type.
Cheers,
Christian
-
3. Re: How to bind a DateBox with Errai binding?
calderas Apr 30, 2015 2:22 PM (in response to csa)Problem/Solution found it.
Into .errai/BindableProxyLoaderImpl.java, Errai tries to override the getters/setters of the Model; however, the setter for fecha is final, so that blocks to override the setFecha method.
I had already removed the final but the gwt-incremental compilation is not enough to make effective the change into BindableProxyLoaderImpl. It was necessary to Clean/Build the full project; at least in NetBeans.
Thanks,
Juan