4

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?

4 Answers 4

2

gwt-exporter will almost definitely be helpful.

Sign up to request clarification or add additional context in comments.

Comments

0

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

Comments

0

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

Comments

0

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.