Saturday, January 9, 2016

Re: JSNI Question

Let me understand your question.

- You have a GWT application, where you want to expose few functionality/UI via JavaScript Api.

If thats what you want to achieve:

- Can you check if you have <inherits name="com.google.gwt.i18n.I18N"/> in the gwt module where the API is exposed ?
- I dont think you need to prefaced anything with $wnd

Regards
Gourab.




On Sat, Jan 9, 2016 at 10:00 PM, Eric Nissan <eric.nissan@gmail.com> wrote:
I never got a response to this.  Anyone know if this is an issue?

Any help would be appreciated.

Thanks,
Eric


On Tuesday, December 29, 2015 at 5:55:28 PM UTC-5, Eric Nissan wrote:
I am using JSNI to reference a javascript library.  My initial call is fine, but then somewhere down they chain I get a null pointer inside the javascript library.

I am referencing the library like this

$wnd.TradingView.widget({});

which is a valid reference.  

This then seems to load in other javascript files.  the object it loads are not referenced as $wnd (because that is a GWT thing), and I eventually get a "cannot read property 'init' of undefined".

My question is, could this be causing my problems?  
for example I am getting this error on this call.  Is this because it is not prefaced with $wnd?
$.i18n.init({})

--
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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

--
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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment