Hi.
I have a small problem, which I don't understand where it comes from -
meaning if it is a bug or I'm doing something wrong.
I am doing something like this:
---
Element editableElement = DOM.getElementById( "id");
DOM.sinkEvents( item, Event.ONCHANGE);
DOM.setEventListener( editableElement, new EventListener() {
public void onBrowserEvent( Event event ) {
Window.alert( "changed");
}
} );
---
This onBrowserEvent is never called. When I substitute the creation of
the EventListener with 'this' and and add a onBrowserEvent to the
class, this works.
So, should the EventListener above be called, or is it meant to work
only when adding the onBrowserEvent method to the class?
Thanks,
Michael
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---