Using EL in Constraint Violation Messages with Bean Validation 1.1

Although it's a point release Bean Validation 1.1 brings a number of important features to Java EE 7. While the most significant of these features is clearly method validation, another very useful feature is the ability to customize constraint violation messages using EL. Gunnar Morling does a great job of explaining the feature in a recent blog post. There's also the 15-minute Bean Validation 1.1 presentation by specification lead Emmanuel Bernard on the GlassFish videos YouTube channel:

You can also check out the very well written official specification or try things out with the newly released Java EE 7 SDK.

Comments:

Post a Comment:
Comments are closed for this entry.