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}")?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091076#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...