errai-data-binding does not depend on errai-ui and as the docs state you can use it independently.
Here's the chapter on how to set up errai-data-binding:
An introduction to the standalone API:
Thank you for your answer.
Sorry for my lack of experience and my pseudo-English.
I made a very simple "safe-mode" gwt-app. Then, I added the Errai Data Binding according to Errai Reference Guide.
But I get this error:
Tracing compile failure path for type 'org.jboss.errai.databinding.client.api.DataBinder'
[ERROR] Errors in 'org/jboss/errai/databinding/client/api/DataBinder.java'
[ERROR] Line 76: No source code is available for type org.jboss.errai.common.client.api.Assert; did you forget to inherit a required module?
[ERROR] Errors in 'org/jboss/errai/databinding/client/BindableProxyAgent.java'
[ERROR] Line 339: No source code is available for type org.jboss.errai.common.client.api.Assert; did you forget to inherit a required module?
[ERROR] Errors in 'org/jboss/errai/databinding/client/PropertyChangeHandlerSupport.java'
[ERROR] Line 48: No source code is available for type org.jboss.errai.common.client.api.Assert; did you forget to inherit a required module?
[ERROR] Errors in 'org/jboss/errai/databinding/client/BindableProxy.java'
[ERROR] Line 30: No source code is available for type org.jboss.errai.common.client.api.WrappedPortable; did you forget to inherit a required module?
Obviously, I have no experience with Errai. I feel, some kind of previous configuration is missing.
Thanks a lot,
Adding the errai-common module to your gwt.xml should fix this issue:
<inherits name="org.jboss.errai.common.ErraiCommon" />
That inherit lets me to compile and run the app.
But know, I get the exception "There are no proxy providers for bindable types registered yet." in this line:
DataBinder<Customer> dataBinder = DataBinder.forType(Customer.class);
It looks like @Bindable is not working or how the proxies are registered?
My Customer is the same as the documentation.
The @PostConstructor does not work.
Thanks a lot.
My guess is that you're missing the ErraiApp.properties file. This file can be empty but it is used as a placeholder for classpath scanning:
I put the file in many folders just to be sure, but nothing, the "There are no proxy providers for bindable types registered yet." is still there.
I could do the errai-tutorial in order to know how it works; however, my plant to use just the errai-binding as standalone inside my gwt app.
So, a very simple tutorial about how to use errai-binding in netbeans+gwt2.7+maven would be great.
You could check if your .errai folder (created a compile time in your working directory) contains a file called BindableProxyLoaderImpl.java. If yes, then everything is configured correctly but your @Bindable types couldn't be found. The cause for this is usually a missing ErraiApp.properties file or an incorrect package. A package that's not marked as GWT translatable.
And just to make sure. You did this, right?
This is required for bootstrapping without IOC.
That was the "missing"
It worked with the simple Customer POJO but not with my real class. I guess my class is complex and I need to learn about Bindable and etc. question of time.
I see that the PropertyChangeEvent is fired when the bound widget is left; but, is there a way to detect the changes before left the widget? That is to say; while the user start to typing on the widget.
Thanks a lot for you help,