public void execute(FacesContext facesContext) throws FacesException {
// ---------------------------------------------------------- Public Methods
if (LOGGER.isLoggable(Level.FINE)) {
LOGGER.fine("Entering InvokeApplicationsPhase");
}
UIViewRoot root = facesContext.getViewRoot();
assert (null != root);
try {
root.processApplication(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 InvokeApplicationsPhase");
}
}
|