1 Reply Latest reply on Oct 3, 2007 1:46 PM by Matt Drees

    Seam patterns and messages

    Stateless Bean Novice

      hi,
      In booking example we see:

       @NotNull(message="Credit card number is required")
       @Length(min=16, max=16, message="Credit card number must 16 digits long")
       @Pattern(regex="^\\d*$", message="Credit card number must be numeric")
       public String getCreditCard()
       {
       return creditCard;
       }
      


      If I want to get my message "Credit card number must 16 digits long" from app properties for a bean, how can I do it?

      error.message = Credit card number must 16 digits long


      @Length(min=16, max=16, message="#{error.message}")
      ?