0
I got 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 marks the ones that match the text I’m typing. I would like it only to show the options that match my text. How can I do that? Mine completeMethod
is:
public List<Geracao> listarGeracoes() throws Exception
{
this.geracoes = gDao.findAll();
return this.geracoes;
}
Take a look here: http://www.primefaces.org/showcase/input/autoComplete.xhtml
– Douglas
I’ve looked but I don’t understand how I’m gonna do it.
– Roknauta