On 2010-08-19 15:00, Patrick Petermair wrote:
armandoxxx schrieb:
You need to be able to select multiple items from autocomplete dropdown list with just DOWN key ???

No, I want to select a single item - but out of a list of all the items.
Take the example at:
www.wicket-library.com/wicket-examples/ajax/autocomplete

The user starts typing "a" and the AutoCompleteTextField suggests the values Algeria, Austria, Australia, etc. In my usecase, the user wants to press the down key and be presented with a list of all the countries so that he can navigate through them with the up & down keys.

Let's say a user has 100 possible choices .. then it makes sense to type in the first few letters until he is down to probably 5 choices or so. But another user may have only 3 possible choices. For him it would be better to just use the down key right away and select the value he wants instead of having him type a letter first..
Wouldn't it be enough to just let the list show on focus and on empty input?

Use:
AutoCompleteSettings settings = new AutoCompleteSettings();
settings.setShowListOnEmptyInput(true);
settings.setShowListOnFocusGain(true);
// and possibly other settings as needed

And then specify those settings in the constructor..

Matt


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to