Tuesday, February 25, 2014

Re: GWT and SVG, the 125th... :-)

There's two general approaches:

1) Write large JSNI methods that do all the interaction in Javascript
2) Use GWT's JavaScriptObject, subclass the library's objects, and write small JSNI methods that wrap individual methods of the JS object.

There's supposed to be better JS interop coming in GWT 3.0, but that's a ways off.

There's a number of GWT/JS wrappers out there that you could use as examples (Google Maps and Google Earth come to mind).

On Tuesday, February 25, 2014 11:45:10 AM UTC-5, Magnus wrote:
Yes, it's cool! :-)

But what about my question? :-)

How to embed JS within GWT?

Thanks
Magnus

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment