Jsni replacement in 2.8?

173 views
Skip to first unread message

Ali Akhtar

unread,
May 11, 2016, 5:27:04 PM5/11/16
to GWT Users
In GWT 2.8, what should be used in place of Jsni methods? Such as for integrating a 3rd party js library? There was very sparse documentation available for JsInterop last time I checked, are there any more docs available now?

Michael Zhou

unread,
May 11, 2016, 5:44:41 PM5/11/16
to GWT Users

Ali Akhtar

unread,
May 11, 2016, 5:53:07 PM5/11/16
to Google Web Toolkit
How much of that has been implemented? Are there any examples of it working anywhere?

--
You received this message because you are subscribed to a topic in the Google Groups "GWT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/FbwB4x8jSE8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-tool...@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.

Jens

unread,
May 11, 2016, 6:23:40 PM5/11/16
to GWT Users

How much of that has been implemented?

Everything in the 1.0 spec should work in 2.8 SNAPSHOT. 

-- J.


Ali Akhtar

unread,
May 11, 2016, 6:25:13 PM5/11/16
to Google Web Toolkit
Is Jsni going to be deprecated / removed?

Thomas Broyer

unread,
May 12, 2016, 4:59:21 AM5/12/16
to GWT Users


On Thursday, May 12, 2016 at 12:25:13 AM UTC+2, Ali Akhtar wrote:
Is Jsni going to be deprecated / removed?

JSNI won't be removed in 2.8.
To be future-proof, you'll want to limit your use of JSNI to the bare minimum, and use JsInterop whenever possible, but there are still a few things that JsInterop cannot do and that require the use of JSNI (or are more efficient with JSNI, e.g. object literals vs. building an object one property at a time).
Reply all
Reply to author
Forward
0 new messages