GWT to create javascript library utility

I need to create a javascript library that will be called from other javascript code.

Is it possible to create a javascript library using the GWT and Java classes? There are no entry points, no user interface - only some javascript utility classes with public static and object methods (e.g. encryption library, image processing library, user input validation library, etc.)?

Any other java to javascript conversion tool is good.

+25
java javascript gwt
Jun 26 '10 at 21:29
source share
2 answers

Yes, it is possible to write GWT code that can trigger other JavaScript on the page.

However, I do not know of a single project that is currently doing this on any large scale, so you may be lighting a new route.

The basics of invoking GWT code from JS have been described in this GWT blog since 2008 , in particular in the section "Creating JavaScript Libraries with GWT" is not surprising. "

Another project that is linked to this blog might be of interest to you, the GWT Exporter , which "contains a generator capable of taking GWT classes and exporting them as regular Javascript APIs that can be called from hand-written Javascript without JSNI"

+14
Jun 26 '10 at 23:03
source share

Departure:

https://code.google.com/p/gwt-exporter/

Develop an application or library in GWT and use the gwtexporter annotation to create classes and methods from javascript.

+2
Mar 14 '13 at 3:57
source share



All Articles