-
1. Re: Force selection in combobox/suggestionbox
ilya_shaikovsky Apr 22, 2010 10:07 AM (in response to orik)Not sure that completelly get the point. You want the user to be able to type only some limited number of chars? And then to choose from list only?
-
2. Re: Force selection in combobox/suggestionbox
orik Apr 22, 2010 10:48 AM (in response to ilya_shaikovsky)I want the user to be able to type in and select only items that appear in the drop down,
or in other words, for the combobox/suggestionbox to only accept input from the drop down.
For example,
if the drop down contains the following values:
"John"
"James"
The user will not be able to type in "P" or "Ji", only prefixes (and eventually all) of the items that appear in the drop down.
Hope this is clearer.
-
3. Re: Force selection in combobox/suggestionbox
orik May 9, 2010 7:23 PM (in response to orik)PrimeFaces has this functionality in its autocomplete component, check out the forceSelection attribute.
http://www.primefaces.org:8080/prime-showcase/ui/autoCompleteBasic.jsf
-
4. Re: Force selection in combobox/suggestionbox
orik Oct 7, 2010 4:44 PM (in response to orik)We eventually ended up using the combobox component and validating the input using a JS "onchange" handler.