If I have a FacesMessage Object, how do I find severity. FOr eg: getSeverity()......
Any help would be greatly appreciated. Thanks
Simply look in the FacesContext
instance for the list of messages, then get the severity for a specific message:
Iterator<FacesMessage> msgs = FacesContext.getCurrentInstance().getMessages();
for (FacesMessage msg : msgs) {
msg.getSeverity();
}