this.eventBus.addHandler(SomeEvent.TYPE, new SomeEventHandler() {

 @Override

 public void onSome(SomeEvent event) {

  Window.alert("Hi");

 }

 });

  this.eventBus.fireEvent(new SomeEvent());


Why doesn't this work? When I debug and step through this code, I see that 
the handlers list is empty when fireEvent is called.


How can I add the handler immediately, so that I can fire it straight after?

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

Reply via email to