Hello,

I am looking for a way to post to my event bus via user defined
javascript.

This is what I came up with, but the event is not fired. What's wrong?

// I call this during onModuleLoad
public native void registerExternalEventSink() /*-{
$wnd.fireExternalEvent =
th...@org.test.gwt_platform_client::fireExternalEvent(Ljava/lang/
String;);
}-*/;


private void fireExternalEvent(String eventData) {
SomeEvent.fire(ginjector.getEventBus(), eventData);
}

js call:

fireExternalEvent("mydata"); // event is not triggered

Thanks for your input!

Kai

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to