It's actually really quite easy. You just need to create your own SuggestOracle that overrides the requestSuggestions method and executes some sort of code to contact your server/database to do the search (GWT-RPC, REST, simple GET request, etc..) then utilizes the Callback's onSuggestionsReady passed into the overriden method to display the results of the server method.
On Oct 21, 3:09 am, Florian Rhomberg <[email protected]> wrote: > Hello! > > I need to implement a suggest box. Therefor I found a possibility to create > that on this > page:http://www.gwtapps.com/doc/html/com.google.gwt.user.client.ui.Suggest... > But however I cannot use this code with the oracle because I have more than > 70000 datas. Therefore I want to realise this in that way: > > After each character the system should send an rpc call to the server where > the server makes a database query and returns the result which is afterwards > displayed beneath the textfield. > > Can someone help how such a code would look like in gwt? > > Thanks, > Florian -- 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.
