1 Reply Latest reply on Apr 17, 2009 10:20 AM by Ambrish Singh

    Seam -Hibernate Validator

    Jubril Adisa Novice

      if i want to implement validation in Seam using hibernate i use Tags
      for example



      @Email
      public String getEmail()
      



      And if the email is incorrect i get a Red Box around my field. My question is how can i implement this  (Programmatically) without using Tags

        • 1. Re: Seam -Hibernate Validator
          Ambrish Singh Newbie
          Hi Jubril,

          You need to create your own custom validator for Email.
          You can check the JSF Docs for creating Custom Validator.

          After creating your custom  validator add it to the field, which you want to validate using validator attribute or <f:validator> tag on that field.

          Check the JSF docs.

          Thanks | Regards
          Ambrish