Alloy Showcase
alloy:autoComplete
AutoComplete is a UIInput component that renders an<input>
element and a popup list. Suggestions (list items) can be added by specifying f:selectItem or f:selectItems tags as children. Since it extends HtmlInputText, it supports all the features of h:inputText.
Data Model Usage
Items can be specified dynamically when the value attribute of the child f:selectItems tag is bound via EL to a model bean property (which is wrapped implicitly by JSF with a DataModel). The var attribute of the child f:selectItems tag is used to introduce a variable name into the EL when iterating over the model.Source Code
Liferay Faces Alloy 4.1.1 + Liferay Faces Bridge Implementation 5.0.0 + Showcase Common 4.0.0 + Liferay Faces Util 3.4.1 + Mojarra 2.2.20