Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Using EL in Constraint Violation Messages with Bean Validation 1.1

DZone's Guide to

Using EL in Constraint Violation Messages with Bean Validation 1.1

· Java Zone ·
Free Resource

Get the Edge with a Professional Java IDE. 30-day free trial.

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.

Get the Java IDE that understands code & makes developing enjoyable. Level up your code with IntelliJ IDEA. Download the free trial.

Topics:

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}