Friday, February 5, 2016

Re: JSNI Question

I didn't know that, are there bug reports I could get the details from?

On Friday, February 5, 2016 at 5:23:42 AM UTC, Stepan Koltsov wrote:
Except there are lots of things that are not possible via jsinterop. (Or maybe possible, but hard to find how to do it).

For example:

* JsArray still requires type parameter to extend JavaScriptObject, so you cannot work with cannot work with arrays of @JsType

* you cannot do index without JSNI (you cannot express foo[bar] in jsinterop without JSNI and @JsOverlay).

* you cannot catch `this` argument in function callback (which is used heavily in jquery).

--
Stepan


On Thursday, January 14, 2016 at 2:21:07 PM UTC+3, salk31 wrote:
NB JSNI is being replaced by JsInterop... it is much nicer so if you are starting new code I'd strongly recommend you use it rather than JSNI.

On Sunday, January 10, 2016 at 8:00:30 AM UTC, Gourab wrote:
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....@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-we...@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