richfaces - rich:autocomplete cachedAjax firing after prefix -
i´m trying use rich:autocomplete component cachedajax mode list server after short prefix , process remain autocomplete on client, keeps firing autocompletemethod after every character after minchars param.
anyone else had problem? or maybe i´m doing somethin wrong? i´m using richfaces 4.5.3.final , xhtml , function on bean listed bellow:
xhtml
<h:form> <h3>test cached</h3> <rich:autocomplete mode="cachedajax" minchars="3" autocompletemethod="#{beantestelogan.doautocomplete}"/> </h:form> function on bean
public list<string> doautocomplete(string pattern) throws sqlexception { list<string> listasaida = new arraylist<string>(); ... list<pessoa> pessoas = pessoadao.findbynomelike(connection, pattern); (pessoa pessoa : pessoas) { listasaida.add(pessoa.getnome()); } return listasaida; }
Comments
Post a Comment