I have the following autoComplete
:
<p:autoComplete id="geracao" value="#{habilidademb.habilidade.geracao}"
completeMethod="#{habilidademb.listarGeracoes()}"
dropdown="true" var="bean" itemLabel="#{bean.nome}"
itemValue="#{bean}" converter="#{geracaoConverter}" effect="bounce"/>
When I'm typing in it, it opens all the options and marking the ones that match the text I'm typing. I wish he would only show the options that would marry my text. How can I do this? My completeMethod
is:
public List<Geracao> listarGeracoes() throws Exception
{
this.geracoes = gDao.findAll();
return this.geracoes;
}