<rich:AjaxValidator> ERROR
lrms017 Nov 25, 2009 6:36 PMHI 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
Error:
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"
action="#{AdministradorController.prepareForNewAdmin}"
reRender="SelectedAdminPanel"/>
</t:div>
</h:form>
<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}"
required="true"
requiredMessage="Por Favor digita el nombre de usuario"
validatorMessage="El nombre de usuario debe contener entre 5 y 45 caracteres"
disabled="#{AdministradorController.disableForm}"
styleClass="formInputStyle">
<rich:ajaxValidator event="onblur"/>
<a4j:support event="onkeyup" action="#{AdministradorController.validateUsername}"
ignoreDupResponses="true" ajaxSingle="true"/>
<f:validateLength minimum="5" maximum="15"/>
</h:inputText>
<rich:message for="txt_UsernameAdministrador" id="usernameMessages"
errorClass="ErrorMessageClass" errorLabelClass="ErrorLabelClass"
infoClass="SuccessMessageClass" infoLabelClass="SuccessLabelClass">
</rich:message>
</h:panelGrid>
</rich:panel>
</h:form>
</rich:panel>
notes:
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