-
1. Re: Errai DataBinding Standalone
csa Mar 31, 2015 4:20 PM (in response to calderas)Hi Juan,
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:
http://docs.jboss.org/errai/3.1.2.Final/errai/reference/html_single/#_errai_data_binding
An introduction to the standalone API:
http://docs.jboss.org/errai/3.1.2.Final/errai/reference/html_single/#sid-51282340
Cheers,
Christian
-
2. Re: Errai DataBinding Standalone
calderas Mar 31, 2015 6:09 PM (in response to csa)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,
Juan
-
3. Re: Errai DataBinding Standalone
csa Mar 31, 2015 6:36 PM (in response to calderas)Hi,
Adding the errai-common module to your gwt.xml should fix this issue:
<inherits name="org.jboss.errai.common.ErraiCommon" />
Cheers,
Christian
-
4. Re: Errai DataBinding Standalone
calderas Apr 2, 2015 11:32 AM (in response to csa)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.
Juan
-
5. Re: Errai DataBinding Standalone
csa Apr 2, 2015 2:26 PM (in response to calderas)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:
https://github.com/errai/errai-tutorial/blob/master/src/main/resources/ErraiApp.properties
Cheers,
Christian
-
6. Re: Errai DataBinding Standalone
calderas Apr 2, 2015 3:00 PM (in response to csa)Nop,
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.
Thanks
-
7. Re: Errai DataBinding Standalone
csa Apr 2, 2015 4:10 PM (in response to calderas)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.
-
8. Re: Errai DataBinding Standalone
csa Apr 2, 2015 4:23 PM (in response to csa)And just to make sure. You did this, right?
This is required for bootstrapping without IOC.
-
9. Re: Errai DataBinding Standalone
calderas Apr 2, 2015 6:02 PM (in response to csa)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,
-
10. Re: Errai DataBinding Standalone
vito.salvia Apr 3, 2018 10:37 AM (in response to calderas)I'm tring to use gwt with errai databing in standalone mode, but it'doesn't work. Errai version is 4.0.2.
Any solutions????