private String getSeverityIcon ( FacesMessage message ) { if ( message . getSeverity ( ) . equals ( FacesMessage . SEVERITY_WARN ) ) return "fa fa-exclamation-triangle" ; else if ( message . getSeverity ( ) . equals ( FacesMessage . SEVERITY_ERROR ) ) return "fa fa-times-circle" ; else if ( message . getSeverity ( ) . equals ( FacesMessage . SEVERITY_FATAL ) ) return "fa fa-ban" ; return "fa fa-info-circle" ; }
Get severity related icons . We use FA icons because future version of Bootstrap does not support glyphicons anymore