diff --git a/src/main/java/ru/ulstu/core/util/FacesUtil.java b/src/main/java/ru/ulstu/core/util/FacesUtil.java index 7b63ceb..5cd2211 100644 --- a/src/main/java/ru/ulstu/core/util/FacesUtil.java +++ b/src/main/java/ru/ulstu/core/util/FacesUtil.java @@ -30,7 +30,7 @@ public class FacesUtil { FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, summary, detail); FacesContext fc = FacesContext.getCurrentInstance(); fc.getExternalContext().getFlash().setKeepMessages(true); - fc.addMessage(null, message); + fc.addMessage("messages", message); } public static void showDangerMessage(String summary, String detail) { diff --git a/src/main/resources/META-INF/resources/basicTemplate.xhtml b/src/main/resources/META-INF/resources/basicTemplate.xhtml index 641d09b..f9f14cd 100644 --- a/src/main/resources/META-INF/resources/basicTemplate.xhtml +++ b/src/main/resources/META-INF/resources/basicTemplate.xhtml @@ -38,7 +38,7 @@