myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Myfaces Wiki] Update of "Drafts/Site/ExtVal" by BartKummel
Date Sat, 12 Feb 2011 13:31:10 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.

The "Drafts/Site/ExtVal" page has been changed by BartKummel.
The comment on this change is: Initial version.
http://wiki.apache.org/myfaces/Drafts/Site/ExtVal

--------------------------------------------------

New page:
The Validator project was recently added under the MyFaces Extensions umbrella project. This
project was created as a separate project by its lead developer under a different name, but
joined the MyFaces project in December 2008. Although the full name of the project is MyFaces
Extensions Validator, it is mostly referred to as ExtVal.

The goal of ExtVal is to eliminate the need to repeat validation code in the View layer of
a Java EE application. This is often necessary in order to give user-friendly error messages.
However, according to the Don't Repeat Yourself (DRY) principle, repeating code is not desirable.
ExtVal can use several types of annotations in the Model layer of your application to generate
JSF validations:
 * Bean Validation (JSR 303) annotations;
 * JPA annotations;
 * ExtVal annotations;

Thus, ExtVal eliminates the need to add validators to JSF pages as well as the need to repeat
validation code. 

Mime
View raw message