7 Replies Latest reply on Apr 7, 2011 8:27 AM by Ilya Shaikovsky

    rich:validator - javascript error

    Stephan Pabinger Newbie

      Hi,

       

      I'm trying to use the rich:validator with a plain Java entity. During validation I get a

       

       

      addRun_3Aname_3Av is not defined

       

       

      error (similar to http://community.jboss.org/thread/163804?tstart=390 ). I already checked my doctype and it's equal to the one mentioned in the post.

       

      xhtml page

      <h:inputText id="name" styleClass="inputEdit"
                  value="#{run.name}">
          <f:validateLength minimum="3"/>
      
          <rich:validator event="keyup" />
          <rich:message for="name" />
      </h:inputText>
      

       

      Run.java

      @Column(name = "name")
      @NotNull
      @NotEmpty
      public String getName()
      {
        return name;
      }
      

       

       

      Does anybody know a solution to that problem?

       

      Thanks,

      Stephan