3 Replies Latest reply on Dec 12, 2011 10:36 AM by Ahmed Wafeek

    Client-side validation javascript error

    Ahmed Wafeek Newbie

      I'm using RF 4.0 final for validation within my project

      The error messages work great but if the page is submitted to the server , but not at the client side

       

      instead it fires a javascript error

      1. Uncaught ReferenceError: j_idt1_3Aemail_3Av is not defined

       

      the j_idt1_3Aemail_3Av function should be generated within my jsf page , but when I viewed the source of the page it doesn't exist

       

      why RF doesn't generate the client side validation functions ?

       

       

      I'm using glassfish , but also when I deployed the project on JBoss 6.0 it gave me the same error

       

      in web-inf/lib folder I have put those libraries

       

                          richfaces-components-api-4.0.0.Final.jar

                          richfaces-components-ui-4.0.0.Final.jar

                          richfaces-core-api-4.0.0.Final.jar

                          richfaces-core-impl-4.0.0.Final.jar

                          guava-r09.jar

                          cssparser-0.9.5.jar

                          sac-1.3.jar

       


      and here the xhtml page code

      <code>

      <h:outputText value="Name:" />

                      <h:inputText value="#{userBean.name}" id="name">

                          <f:validateLength minimum="3" maximum="8"/>

                          <f:validateRequired />

                          <rich:validator/>

                      </h:inputText>

                      <rich:message for="name" />

      </code>

       

      and this is a snapshot of the runtime page source

      richfaces error.png

       

      also I have noticed that the file richfaces-csv.js is not included in my page by richfaces

       

      any clue ?