public void displayErrorMessage(ActionEvent invokeEvent, String message) {
String logp = CN + " :: displayErrorMessage- ";
LOGGER.debug(logp + " START");
FacesMessage facesMsg = new FacesMessage();
facesMsg.setSeverity(FacesMessage.SEVERITY_ERROR);
facesMsg.setSummary(message);
FacesContext.getCurrentInstance().addMessage(invokeEvent.getComponent().getClientId(FacesContext.getCurrentInstance()),facesMsg);
LOGGER.debug(logp + " END");
}
Happy Learning!!!
String logp = CN + " :: displayErrorMessage- ";
LOGGER.debug(logp + " START");
FacesMessage facesMsg = new FacesMessage();
facesMsg.setSeverity(FacesMessage.SEVERITY_ERROR);
facesMsg.setSummary(message);
FacesContext.getCurrentInstance().addMessage(invokeEvent.getComponent().getClientId(FacesContext.getCurrentInstance()),facesMsg);
LOGGER.debug(logp + " END");
}
Happy Learning!!!
No comments:
Post a Comment