Widget without dom element

Hey,

from which class should i extend my widget and connector if don’t have any dom elements?
My addon should only execute some js-functions that i wrote in gwt.

Thanks,
Marcel

If you don’t have DOM elements, what you have is normally an Extension rather than a widget.

See AbstractExtension/AbstractJavaScriptExtension and the mini-tutorials
here
.

Hey,

thats what i was looking for, thanks.

One more question… as SharedState is for Server → Client only, how to read data from clientside?
Should i make RPC call to server at creation or is there a better way?

Thanks

Yes, anything you want/need to communicate from the client to the server should be done with RPC calls.