Monday, August 26, 2013

Re: SuggestBox with keydownhandler event - Question

You need to implement your own oracle that does the server request on its own. Extend SuggestOracle and implement SuggestOracle.requestSuggestions(). Use your RPC call to retrieve the values and build a Response that you can pass to the provided callback.

Currently your oracle is empty when the first key is typed and thus no suggestions can be shown. Once the second key is typed you see the results of the first key so you are always one behind (in fact it could even be worse if the internet connection is slow and RPC results arrive out of order).

-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment