Question

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.

Was it helpful?

Solution

GWT bug 6323 Comment 3 provides a simple workaround for getting the ui handler annotation to function. Thanks to Roy!

OTHER TIPS

See GWT issue 6323

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top