Monday, June 20, 2016

Re: Unable to access exported JsType from JavaScript

Looking at your code, the class would be available at "blah.WebUI", but you'd have to create a new instance before your can call your method, and given how you initialize it you'd have to call onModuleLoad before that.
Maybe if you make your method and all the fields 'static' that'd work; either that or move the initialization in the class constructor (and maybe use another class as the EntryPoint to avoid a double initialization).

Thanks for the pointer, it works! I can do the following in JS:

x = new blah.WebUI();

I don't know how I missed it. :)

Again, thanks a lot for the pointer.


You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment