OmniOwl
OmniOwl

Reputation: 5709

Autocompletion using Java not JavaScript

I have to make what is called "Hypertext Searching" in my application. Basically, you start typing in a field, and just like Google for each letter you type in, the relevant search matches changes. The only difference is, that I will fill a table with information, and every time the user types a letter in the box, the table will change content based on what you start typing.

An example would be that if you wanted to look for a Harry Potter book, you start typing Harry.

For each letter you type, the table changes, nailing down letter for letter what book it is you are looking for.

My question is: Which way would be the best or most appropriate way of doing it efficiently? I am going to have an array list with objects in, that I can access and show on the table.

Upvotes: 1

Views: 216

Answers (2)

Cy Pangilinan
Cy Pangilinan

Reputation: 572

Have you tried SuggestBox using GWT and Facebook Style Autocomplete?

Upvotes: 1

tibo
tibo

Reputation: 5494

This functionality is called autocompletion.

There is plenty of solution if you search on google "javascript autocompletion".

Personnally I use jquery ui which has a component for that http://jqueryui.com/demos/autocomplete/

EDIT: My bad, the question is about java, not javascript

Upvotes: 1

Related Questions