public final class JsfAutoCompleteUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static List<javax.faces.model.SelectItem> |
getAutoCompleteSuggestions(List<javax.faces.model.SelectItem> allSuggestions,
String autoCompleteText,
int maxNumberOfSuggestions)
Gets auto complete suggestions.
|
public static List<javax.faces.model.SelectItem> getAutoCompleteSuggestions(List<javax.faces.model.SelectItem> allSuggestions, String autoCompleteText, int maxNumberOfSuggestions)
allSuggestions - The complete list of possible suggestions.
autoCompleteText - The text already entered by the user.maxNumberOfSuggestions - The maximum number of suggestions that will
be returned.NullPointerException - When either the supplied list of suggestions
or the supplied autoCompleteText is null.IllegalArgumentException - When the supplied maxNumberOfSuggestions
is less than 1.
null.Copyright © 2008–2018. All rights reserved.