public void execute(FacesContext facesContext) throws FacesException {
// ---------------------------------------------------------- Public Methods
if (LOGGER.isLoggable(Level.FINE)) {
LOGGER.fine("Entering ProcessValidationsPhase");
}
UIComponent component = facesContext.getViewRoot();
assert (null != component);
try {
component.processValidators(facesContext);
} catch (RuntimeException re) {
String exceptionMessage = re.getMessage();
if (null != exceptionMessage) {
if (LOGGER.isLoggable(Level.WARNING)) {
LOGGER.log(Level.WARNING, exceptionMessage, re);
}
}
throw new FacesException(exceptionMessage, re);
}
if (LOGGER.isLoggable(Level.FINE)) {
LOGGER.fine("Exiting ProcessValidationsPhase");
}
}
|