3 Replies Latest reply on Oct 17, 2009 9:00 AM by Nick Belaevski

    RichAjax Validator  NoClassDefFoundError

    vicente san silvestre chacon Newbie

      Hi everyone
      I have an issue using the <rich:ajaxValidator> tag, I get a NoClassDefFoundError error , this happens only in the latest release richfaces 3.3.2 SR1 with the richfaces 3.3.1 this error doesnt appears

      the problem:
      Im using a rich ajax validator inside an <h:inputText> tag in order to validate the value length between 5 and 10 caracters
      but when I compile my project i get this error:

      ERROR:
      java.lang.NoClassDefFoundError: javax/validation/MessageInterpolator
      at org.richfaces.validator.ObjectValidator.createInstance(ObjectValidator.java:54)
      at org.richfaces.validator.ObjectValidator.getInstance(ObjectValidator.java:85)
      at org.richfaces.validator.FacesBeanValidator.validate(FacesBeanValidator.java:103)
      at org.richfaces.component.html.HtmlInputText.validateValue(HtmlInputText.java:52)


      if I use the richfaces 3.3.1 version this doesnt happens I think its a Bug pls let me know thanks

      here is my code

      <rich:panel header="testValidation">
       <a4j:form ajaxSubmit="true" ajaxSingle="true">
       <a4j:keepAlive beanName="ProductBean"/>
       <rich:messages/>
       <h:outputText value="test:"/>
       <h:inputText value="#{ProductBean.nombre}" required="true" requiredMessage="digita el nombre"
       validatorMessage="el nombre debe contener entre 5 y 10 caracteres">
       <rich:ajaxValidator event="onblur" ignoreDupResponses="true"/>
       <f:validateLength minimum="5" maximum="10"/>
       </h:inputText>
       </a4j:form>
       </rich:panel>