short addition: you posted class-level validation (of bean-validation). that's a bit more difficult (from the perspective of jsf). however, with extval it's possible with using @BeanValidation and @ModelValidation or you use something like multi-field form validation (see [1])
regards, gerhard [1] http://os890.blogspot.com/2010/06/multi-field-form-validation-with-jsr.html http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces 2011/8/23 Gerhard Petracek <[email protected]> > hi alesandro, > > first of all: welcome @ myfaces! > > for cross-validation you need the property-validation module (!= > bean-validation) and for advanced bean-validation you need the > bean-validation module (+ the bv implementation of your choice). > in any case you need the core of extval. for primefaces it's also suggested > to use the generic support module. > > you can find hello world examples at [1]. furthermore, you might be > interested in the wiki [2] and a chapter about extval [3]. both contain > detailed information about such topics. > > regards, > gerhard > > [1] > https://svn.apache.org/repos/asf/myfaces/extensions/validator/trunk/examples/ > [2] https://cwiki.apache.org/confluence/display/EXTVAL > [3] http://people.apache.org/~gpetracek/myfaces/extval/extval_chapter.html > > http://www.irian.at > > Your JSF powerhouse - > JSF Consulting, Development and > Courses in English and German > > Professional Support for Apache MyFaces > > > 2011/8/23 <[email protected]> > > Hello, >> >> I tried to make a cross field BeanValidation with a custom annotation. >> (based on JEE6 / >> JSF2) The validation works correct but it's not passed to the JSF view. >> I wrote about >> this in the Primefaces forum >> http://forum.primefaces.org/viewtopic.php?f=3&t=14569 >> . It would be nice if someone would have a look at this (maybe Iam just >> getting >> something basic wrong with ExtVal). >> >> Regards >> Alesandro >> > >

