开发者

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 Javascrip开发者_开发百科t function calls. Can anyone point me to the information needed to do this?


gwt-exporter will almost definitely be helpful.


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


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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜