jsf - Primefaces autocomplete multiple with forceSelection false -
i'm using primefaces 6.0, in <p:autocomplete>
doesn't work multiple=true
, forceselection=false
.
you can find component below:
<p:autocomplete value="#{bean.value} multiple="true" completemethod="#{bean.completetheme}" forceselection="false"/>
how can insert custom value not listed?
you can add inserted custom value in complete method, this:
public list<string> completemethod(string query) { list<string> suggestions = new arraylist(); suggestions.add(query); //... add more suggestions return suggestions; }
Comments
Post a Comment