[jboss-user] [JBoss Seam] - Seam patterns and messages
Stateless Bean
do-not-reply at jboss.com
Wed Oct 3 10:16:42 EDT 2007
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#4091076
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091076
More information about the jboss-user
mailing list