我想问你关于autocomplete haw我可以做什么来使自动完全接受 bouth miniscule and majuscule letter 因为在我的情况下,我按'a'这个resulat不是'阿尔卡特',但这'alcalet'确定
public List<String> complete(String query) {
List<String> results = new ArrayList<String>();
for (int i = 0; i<list.size(); i++) {
if(list.get(i).getNomFabricant().contains(query))
results.add(list.get(i).getNomFabricant());
}
return results;
}
<h:outputLabel value="Nom Fabricant :" for="nom" />
<p:autoComplete id="nom" value="#{fabricantbean.selcetitem.nomFabricant}" completeMethod="#{fabricantbean.complete}"/>