In my web application I have some input value, where the user is supposed to select an item from a large existing list (>2000 items). For that many items a regular p:selectOneMenu
is just not suitable, because the rendered HTML becomes way to large. So I decided to use the PrimeFaces UI Component p:autoComplete
instead.
To ensure quick response time I am using the additional attribute maxResults
to limit the number of suggestions in the autoComplete component.
This works quite well, the only problem I see is, that the user might not be aware of the fact, that there may be more results than shown in the list of suggestions.
So for example the user starts typing and my complete method returns 50 results but only 10 are displayed because of the value of maxResults. What I'd like to have is some visualization for the user that there are 40 more results found.
Any ideas how I may achieve that?
References: PrimeFaces p:autoComplete