[OmniFaces utilities] The
isBeanValidationAvailable()
returns true
if the Bean Validation is available.Method:
See also: Faces#getApplicationAttribute() | Faces#setApplicationAttribute() | Platform.getBeanValidator()
Usage:
Whenever
you need to check if the Bean Validation is available, you can use the
OmniFaces utility method, Platform#isBeanValidationAvailable():
boolean isBeanValidation =
Platform.isBeanValidationAvailable();
if(isBeanValidation){
// do something
} else {
// do something else
}
Niciun comentariu :
Trimiteți un comentariu