Re: Multiple gwt modules using <script> not <inherit> how to's?

48 views
Skip to first unread message

Thomas Broyer

unread,
Dec 21, 2012, 1:44:12 AM12/21/12
to google-we...@googlegroups.com
Answered on SO: http://stackoverflow.com/q/13972343/116472

On Thursday, December 20, 2012 2:16:10 PM UTC+1, Ahmad Igbaria wrote:

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

Reply all
Reply to author
Forward
0 new messages