I want to process JSR-303 validation myself, i.e., get validation factory and invoke validate method myself:
class FormBean {
void saveForm() {
if (! doValidate()) {
FacesContext.addMessage(...);
return;
}
...
}
void doValidate() { ... }
}
Is there any way to disable the bean validation integrated in JSF? (Not that immediate="true"
, which will not only bypass the validation, but also bypass update-model phases)