Skip to content
Advertisement

autocomplete in vaadin?

I’m new to vaadin. How do I do autocomplete (actually, more like google suggest) on a huge set of data that cannot be loaded in memory, but instead performing a JPA query on every key event. Is it possible to capture key events on a textfield or combobox?

Advertisement

Answer

You could check out Henrik Paul’s SuperImmediateTextField, which is a Vaadin add-on that allows you to set the client-to-server post delay in seconds. From that on it’s common Java stack to get the flow as smooth as possible. Caching, JPA requests or something else. A couple of second’s delay will at least slightly lessen the load to server side.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement