Hi, I would like to know if its possible through a workaround (or out-of-the-box) to limit the value entered in a field to be one of the suggestions in the autocomplete list.
I mean to validate in the client side that if a user types something that does not appears in the suggestions, a validation error shows somehow.
I know that this requirement is addressed more naturally by the select component, but I like the user typing the value instead of selecting one form the list. Even with the "enableManualInput" attribute set to true in , the user can type anything he/she wants without client validation to occur. Thanks in advance, Sivainvi.
I've managed to find a workaround. I've set a converter to the rich:autocomplete component and then inside the "getAsObject" converter method, i got the list of suggestions and when the value entered by the user is not inside that list I trow a ConverterException with a FacesMessage.