Skip to content

Commit

Permalink
Merge pull request #5637 from naofireblade/master
Browse files Browse the repository at this point in the history
Fix #5636: StaticMessage: styleClass is not added by renderer
  • Loading branch information
tandraschko authored Mar 3, 2020
2 parents 64d4ee4 + c7fec42 commit e49b254
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ public void encodeEnd(FacesContext context, UIComponent component) throws IOExce
severity = severity == null ? "info" : severity.toLowerCase();

String styleClass = "ui-message ui-staticmessage ui-message-" + severity + " ui-widget ui-corner-all";
if (staticMessage.getStyleClass() != null) {
styleClass += " " + staticMessage.getStyleClass();
}
String style = staticMessage.getStyle();

writer.startElement("div", staticMessage);
Expand Down

0 comments on commit e49b254

Please sign in to comment.