Hi there,
as stated at [1] and [2] it is easily possible to add different
handlers using the @UiHandler annotation for UiBinder based layouts.
Unfortunately I'm not able to add a click hander to a SuggestBox:
@UiField(provided = true)
SuggestBox mySearchBox;
@UiHandler("mySearchBox")
void handleClick(final ClickEvent e) {
this.mySearchBox.setValue("");
}
I receive the error message:
Field 'mySearchBox' does not have an 'addClickHandler' method
associated.
As stated at [3] this is true and I should use getTextBox() first. But
how can I use the @UiHandler annotation in this case?
BR, Alex
[1]
http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Simple_binding
[2]
http://code.google.com/p/google-web-toolkit/source/browse/releases/2.0/user/test/com/google/gwt/uibinder/test/client/HandlerDemo.java?r=6557
[3]
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/SuggestBox.html
--
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.