Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

combo box autocomplete

Tags:

combobox

gwt

Is there anyway to have the autocomplete for a combo box to start from anywhere in the text, let me give you an example. If I have someone named john smith in the combobox if I start with the letter 'j' it pulls up john smith but less say I want to start with the letter 's' to search for his last name, is that possible, if so does anyone have code or a link to code that does this.

like image 466
user237259 Avatar asked Feb 27 '10 00:02

user237259


1 Answers

Have you looked at SuggestBox? The MultiWordSuggestOracle that feeds the data to the suggest box seems to do exactly what you want - see the javadocs for usage and examples.

Update: Here's a rather nice example of customizing GWT's SuggestBox to look like the one on Facebook: http://raibledesigns.com/rd/entry/creating_a_facebook_style_autocomplete Be sure to follow all the links in that tutorial, as they contain a lot of info about using the SuggestBox.

like image 51
Igor Klimer Avatar answered Oct 18 '22 18:10

Igor Klimer