IIRC it's a relatively recent change in GWT and I cursed a little when I 
encountered it. I solved it by instantiating the SuggestBox using the 
3-parameter constructor that let you specify an oracle. Using UiBinder and 
gin to inject my SuggestOracle this gives:

public class MyView {
...
    @UiField(provided = true) SuggestBox suggestBox;
    private DefaultSuggestionDisplay suggestionDisplay = new 
DefaultSuggestionDisplay();
    private TextBox suggestTextBox = new TextBox();

    @Inject
    public MyView(ClientSuggestOracle clientSuggestOracle, ... ) {
        clientBox = new SuggestBox( clientSuggestOracle, clientTextBox, 
suggestionDisplay );
    }
}

-- 
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.

Reply via email to