Bean Validation Messages in JSF 2
Posted by:
Rossen Stoyanchev
on 10/03/2010
JSF 2 introduced support for standard JSR-303 Bean Validation. One of the surprising bits was the default error messages. Suppose I added an annotation to one of my form beans as follows: public class Booking { @NotEmpty private String creditCardName; } and then I bind it to a form input field: <h:messages /> <h:inputText label="Credit [...]
Rossen Stoyanchev's complete blog can be found at: http://rossenstoyanchev.org/blog/
About Rossen Stoyanchev
I began my career as a C/C++ programmer working on VINES, a distributed directory services product at Banyan Systems. Over the years I've worked on various Java Web applications including a set of multi-tenant e-commerce web applications, an investment accounting system, a trading and risk management system, and others.
I've been using Spring and many of the Spring projects since 2006. I've helped many to learn or to use Spring more effectively through teaching and consulting. Presently I am a comitter on the Spring MVC and the Spring Web Flow projects. My current home is New York city.
More About Rossen »NFJS, the Magazine
May Issue Now AvailableClient-Side MVC with Spine.js, Part 1
by Craig WallsOn Prototypal Inheritance, Part 2
by Raju GandhiMaking use of Scala Lazy Collections
by Venkat SubramaniamIntegration Testing Web Applications Using Gradle
by Kenneth Kousen