10.8 Notes on the implementation of Bean Validation

This section describes the notes on the implementation of Bean Validation.

Notes on the Bean Validation 1.0 specifications
With the Bean Validation 1.0 specifications, only one validation.xml can be allocated to the class path. Do not allocate multiple validation.xml to the class path of a J2EE application.
Notes related to the default Message Interpolator messages
The default Message Interpolator messages differ from the content mentioned in the standard specifications. The following table lists the default values of the Message Interpolator messages for Application Server.

Table 10-7 Default values of the Message Interpolator messages for Application Server

Message property keyDefault value
javax.validation.constraints.AssertFalse.messagemust be false
javax.validation.constraints.AssertTrue.messagemust be true
javax.validation.constraints.Digits.messagenumeric value out of bounds (<{integer} digits>.<{fraction} digits> expected)
javax.validation.constraints.Future.messagemust be in the future
javax.validation.constraints.Max.messagemust be less than or equal to {value}
javax.validation.constraints.Min.messagemust be greater than or equal to {value}
javax.validation.constraints.NotNull.messagemay not be null
javax.validation.constraints.Null.messagemust be null
javax.validation.constraints.Past.messagemust be in the past
javax.validation.constraints.Pattern.messagemust match "{regexp}"
javax.validation.constraints.Size.messagesize must be between {min} and {max}