<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:alloy="http://liferay.com/faces/alloy"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
<alloy:form>
<alloy:field label="#{i18n['highlighter-type']}">
<alloy:selectOneMenu value="#{autoCompleteViewBean.serverFilterType}" hideNoSelectionOption="true">
<f:selectItem itemValue="charMatch" />
<f:selectItem itemValue="phraseMatch" />
<f:selectItem itemValue="startsWith" />
<f:selectItem itemValue="subWordMatch" />
<f:selectItem itemValue="wordMatch" />
<f:ajax render="autoComplete" />
</alloy:selectOneMenu>
</alloy:field>
<alloy:field label="#{i18n['favorite-liferay-benefit']}">
<alloy:autoComplete id="autoComplete" highlighterType="#{autoCompleteViewBean.serverFilterType}"
serverFilterType="phraseMatch" value="#{autoCompleteModelBean.text}">
<f:selectItem itemValue="Compatible" />
<f:selectItem itemValue="Enterprise Ready" />
<f:selectItem itemValue="Powerful Integration" />
<f:selectItem itemValue="Lightweight" />
<f:selectItem itemValue="Open Source" />
</alloy:autoComplete>
</alloy:field>
<hr />
<alloy:commandButton render="@form" value="#{i18n['submit']}" />
<alloy:outputText id="modelValue" value="#{autoCompleteModelBean.text}" />
</alloy:form>
</ui:composition>