System.out.println(MessageFormat.format("showFacesMessage: clientId={0},cause={1} - CALLED!", clientId, cause));
// Get context and add message
- FacesContext.getCurrentInstance().addMessage(clientId, new FacesMessage(cause.getMessage()));
+ this.showFacesMessage(clientId, cause.getMessage());
+ }
+
+ /**
+ * Shows a faces message with given message.
+ * <p>
+ * @param clientId Client id to send message to
+ * @param message Causing exception
+ */
+ protected void showFacesMessage (final String clientId, final String message) {
+ // Get context and add message
+ FacesContext.getCurrentInstance().addMessage(clientId, new FacesMessage(message));
}
}