uCosminexus Application Server, Common Container Functionality Guide

[Contents][Glossary][Index][Back][Next]

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 key Default value
javax.validation.constraints.AssertFalse.message must be false
javax.validation.constraints.AssertTrue.message must be true
javax.validation.constraints.Digits.message numeric value out of bounds (<{integer} digits>.<{fraction} digits> expected)
javax.validation.constraints.Future.message must be in the future
javax.validation.constraints.Max.message must be less than or equal to {value}
javax.validation.constraints.Min.message must be greater than or equal to {value}
javax.validation.constraints.NotNull.message may not be null
javax.validation.constraints.Null.message must be null
javax.validation.constraints.Past.message must be in the past
javax.validation.constraints.Pattern.message must match "{regexp}"
javax.validation.constraints.Size.message size must be between {min} and {max}