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

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -