From 4c4c1b2015e5c4638f3d33da4146d175218f4ada Mon Sep 17 00:00:00 2001 From: Anton Romanov Date: Thu, 28 Nov 2019 07:52:42 +0400 Subject: [PATCH] fix template --- .../java/ru/ulstu/core/util/FacesUtil.java | 2 +- .../META-INF/resources/basicTemplate.xhtml | 2 +- .../META-INF/resources/paper/paper.xhtml | 132 ++++++++++++------ 3 files changed, 88 insertions(+), 48 deletions(-) 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 @@
- + Content
diff --git a/src/main/resources/META-INF/resources/paper/paper.xhtml b/src/main/resources/META-INF/resources/paper/paper.xhtml index 938754c..3255506 100644 --- a/src/main/resources/META-INF/resources/paper/paper.xhtml +++ b/src/main/resources/META-INF/resources/paper/paper.xhtml @@ -17,57 +17,97 @@ border: none; padding: 0px; } + + #mainForm\:paperPanel > tbody > tr { + border: none; + } + + #mainForm\:paperPanel > tbody > tr > td { + border: none; + } - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + - - - - - - + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - + + + + + +