1 Reply Latest reply on Mar 23, 2013 11:24 AM by sivainvi

    limit richfaces:autocomplete value to one of the suggestions

    sivainvi

      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.