As I said, it's a start. It currently only supports some validations:
- JSF required attribute.
- Numeric and date formats, based on how the converter is configured (i.e. a pattern like: "dd-MM-yyyy").
- Bean Validation @NotNull, @Min, @Max and @Future.
It should be usable in Mojarra, since I simply copied the MyFaces dependencies to the component (ExternalSpecifications.java, FacesMessageInterpolator.java and the other Bean Validation related classes).
It still needs some work (like supporting other annotations, and more datestyle patterns), but it's a start.
So I was thinking about committing it into the Sandbox, under: http://svn.apache.org/repos/asf/myfaces/tomahawk/trunk/core20/
I think this concept (when the implementation is ready) is really powerful and a nice addition to the project.
I've written two blog articles where I give a little overview:
When done Mavenizing, I'll add an attachment with all source code.
What do you guys think? Should we add it to the project?