Michael Kay
Michael Kay

Reputation: 163625

Creating a Javascript API for a GWT application

All the GWT examples/tutorials talk about GWT client-side code being activated by events such as onPageLoad(). I want to use GWT to create a library that can be invoked by user-written Javascript function calls. Can anyone point me to the information needed to do this?

Upvotes: 4

Views: 817

Answers (4)

Michael Kay
Michael Kay

Reputation: 163625

Thanks for your contributions.

gwt-exporter looks useful in theory, but so far I've failed to get it to work - it seems to be a fine piece of software ruined by poor documentation.

But I think I can probably do what I need using JSNI "by hand", now I'm starting to understand the architecture better.

Upvotes: 0

Petteri H
Petteri H

Reputation: 12252

The Dzone refcard #1 has also a nice quick reference for JSNI.

Upvotes: 0

Jason Hall
Jason Hall

Reputation: 20930

gwt-exporter will almost definitely be helpful.

Upvotes: 2

Gipsy King
Gipsy King

Reputation: 1577

Before being able to call any GWT code it must be initialized, and I would leave that up the GWT standard procedure for that.

Here's how to call GWT methods from outside of GWT

Upvotes: 0

Related Questions