2 Replies Latest reply on Jun 26, 2009 10:23 PM by ericjung2

    ZipCode and @Country in the Seam manual

    ericjung2

      Hi,


      In the seam manual Chapter 10 JSF form validation in Seam it says:


      it might be more elegant to use custom constraints instead of the ones built into Hibernate Validator:



      public class Location {
      
      ...
      
          @Country
          public String getCountry() { return country; }
      ...
          @ZipCode
          public String getZip() { return zip; }
      }



      But @Country and @ZipCode are never explained. I can find no definition of them in Seam or Hibernate Validator, nor any examples of their use in the Seam examples.


      I'd like to create my own validator called @ValidDays which validates a java.util.Date against valid business days. Where can I find more information about custom constraints?


      Thank you,
      Eric