views:

50

answers:

1

I am trying to get this to work:

@UiField
CheckBox showDeleted;

@UiHandler("showDeleted")
public void onShowDeletedClicked(ValueChangeEvent<Boolean> ev) {
    ...
}

I get these errors from the GWT Compiler:

Invoking generator com.google.gwt.uibinder.rebind.UiBinderGenerator
[WARN] The method 'getAssociatedType()' in 'ValueChangeEvent' does not return Type<? extends EventHandler>.
[ERROR] Parameter 'ValueChangeEvent' is not an event (subclass of GwtEvent).

Does anyone know if it is possible to get this to work? For now I will just add a handler manually but the @UIBinder version is much nicer.

A: 

Maybe your import is wrong? Is this for sure com.google.gwt.event.logical.shared.ValueChangeEvent?

amorfis
Thats the import I have
David Tinker