autocomplete forceSelection=true

UI Components for JSF
Post Reply
dur0
Posts: 5
Joined: 01 Sep 2011, 10:56

24 Oct 2011, 11:25

Hello,
i want the user to only select valid values from autocomplete, so u use forceSelection
=true.

Code: Select all

<p:autoComplete forceSelection="true" value="#{orderingSearch.orderingNum}" ....
So when the user types in an invalid value, it is deleted from the autocomplete inpt field. problem is that setOrderingNum is invoed always, also when the value is incorrect. So actually the whole autocomplete is useless than. Am i doing something wrong?
thanks!

PS: i use primefaces 2.2.1, com.sun.faces.jsf-api 2.1.2

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 20 guests