We developed suggestion box with RPC call for our website
http://www.holidayinn.com/hotels/us/en/reservation?splitreq=endeavor
Below is the steps you can follow to create your own suggestion box.
what you need to do it to overrite SuggestOracle, for example
YourSuggesOracle extends SuggestOracle
in method of
public void requestSuggestions( Request request, Callback callback ) {
// get query
String query = request.getQuery();
if (query.length >=3) {
Call your RPC
set your result list to
Collection suggestions = new ArrayList
();
Response response = new Response( suggestions );
callback.onSuggestionsReady( request, response );
}
}
Then you can use that orerride class
YourSuggesOracle oracle = new YourSuggesOracle ();
SuggestBox destination = new SuggestBox(oracle);
finally, you can get value of it
destination.getText();
On Jan 21, 10:57 pm, manish wrote:
> how can i implement a simple live suggestion box in gwt.give a simple
> example
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.