Autocomplete?

Hi,
I asked similar question in UI components, but I got no answer how to that. What I wanted to do was similar to facebook style auto suggest window:
http://jtechnoprojects.blogspot.com/2011/08/style-definitions-table.html

Since probably only a few have done that, I came across with comboBox. Is it possible to use comboBox for that?
Anyone done that with comboBox?

Regards,
Urban

I’ve not used the CombBox, but I have used a TextField with a TextChangeListener and a PopupView showing a Table to achieve a very similar effect (I was aiming more for a Google AutoSearch field). By callingsetTextChangeTimeout, you can make a popup appear if the user hasn’t entered anything after x milliseconds.

I’m afraid I can’t really share the code itself - depends on lots of internal private stuff - but essentially I bound the textfield to a filter on a custom Container, which is then used by the Table.

I did something with ComboBox, I added a SQLContainer as data source:
http://demo.vaadin.com/sampler/#ui/data-input/multiple-value/combo-box

For now database is not very large, but I’m afraid when I’ll have 20.000 rows, that all data will be fetched from the database. I wanted to do that on valueChange, the sqlContainer with filter LIKE is called, but I think it’s not working…

Ok, thank you. I’ll try to do the same like you did. I’ll ask more specific questions if I ran into problems. Thank you for now!

One more question:
How do you position PopupView, so that it opens under a textbox field?

I had to create an extension of PopupView (including Client side)… I tried using PopupExtension, but it didn’t work for me as I was using a Table. It might work for you though.

Cheers,

Charles.

No the problem with PopupExtension is still there. I have the same problem as you did…so I guess the only possible solution for me is also an extension? Any pointers?

Regards,
Urban