0 Replies Latest reply on Nov 25, 2009 6:36 PM by vicente san silvestre chacon

    <rich:AjaxValidator> ERROR

    vicente san silvestre chacon Newbie

      HI i have an issue with the <rich:AjaxValidator> when validating an input field with the "onblur" action the server log throws an exception

      I read the documentation and there is nothing there regarding of a further configuration for the use of this tag so I came to the forums to see if I can get some help

      the objective:

      use the rich ajax validator tag on an input field

      the problem:

      Im getting an error when the validation occurs

      Bean Validator could not be instantiated
      javax.validation.ValidationException: Unable to find a default provider
       at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:245)....

      the code:
       <rich:panel styleClass="contentwrapper">
       <h:form id="Form_ListAdmin">
       <t:div id="administradoresList" styleClass="wrapperTableList">
       <a4j:commandButton value="AgregarAdministrador"
       <h:form id="Form_administrador">
       <rich:panel id="SelectedAdminPanel" styleClass="selection" headerClass="selectionHeader">
       <h:panelGrid id="pnpgrd_administrador" columns="3" cellspacing="15">
       <h:outputText value="Username:"/>
       <h:inputText id="txt_UsernameAdministrador" value="#{AdministradorBean.usuario}"
       requiredMessage="Por Favor digita el nombre de usuario"
       validatorMessage="El nombre de usuario debe contener entre 5 y 45 caracteres"
       <rich:ajaxValidator event="onblur"/>
       <a4j:support event="onkeyup" action="#{AdministradorController.validateUsername}"
       ignoreDupResponses="true" ajaxSingle="true"/>
       <f:validateLength minimum="5" maximum="15"/>
       <rich:message for="txt_UsernameAdministrador" id="usernameMessages"
       errorClass="ErrorMessageClass" errorLabelClass="ErrorLabelClass"
       infoClass="SuccessMessageClass" infoLabelClass="SuccessLabelClass">

      Im using richfaces 3.3.2 SR1
      and I also add the validation-api-1.0.CR3 jar to the project (from )http://repository.jboss.com/maven2/javax/validation/validation-api/1.0.CR3/

      please help thanks in advance