I have a GWT component that i want to integrate with my GWT application, but unfortunately this component takes about 40 sec to load, this means in DevMode each time i refresh the page i should to wait about 40 sec to be able to work. this is caused by only using the tag for this component.
I thought about inheriting using tag for the component instead of adding tag in the gwt.xml file. in production mode, it works but in development mode i get the following error:
[ERROR] [ModuleA] - Unable to find 'ModuleA.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
The solution that i have come up with is:
1. create a GWT module that inherits the component
2. create a native method that create a function to call the component api:
$wnd.externalJS = $entry(@com.ModuleA::loadData(Ljava/lang/String;));
3. compile the module
4. add script in module B
Thank you
Ahmad Igbaria
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/EIqAxnvYGIgJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment