View Full Version : GWT 2.0: Loader.EventTypes bug?

3 Aug 2009, 12:54 PM
Hi, here is an excerpt from Loader.java

* Fires before a request is made for data.
public static final EventType BeforeLoad = new EventType();

* Fires when new data has been loaded.
public static final EventType Load = new EventType();

* Fires if an exception occurs while retrieving data.
public static final EventType LoadException = new EventType();

It means that all 3 constants will have same event type code =-1.
The question is: HOW TO COMPARE those event types to determine the load event type correctly? :)

3 Aug 2009, 12:58 PM
Moving this to the help forum. This is not a bug. Only browserevents will have a "int event type"

6 Aug 2009, 5:35 AM
something like this:

if(type == Loader.BeforeLoad){