From 9cf0f89e7670bd1273ea6dd8d324d64e26629480 Mon Sep 17 00:00:00 2001 From: tim holloway Date: Thu, 1 Feb 2024 13:45:29 -0500 Subject: [PATCH] Moved persistable properties to cookie, fixed lack of styling --- application.properties | 3 + pom.xml | 6 + .../com/mousetech/gourmetj/AdminMainBean.java | 93 ++++++++----- .../com/mousetech/gourmetj/CookieBean.java | 127 ++++++++++++++++++ .../java/com/mousetech/gourmetj/JSFUtils.java | 46 +++++++ .../com/mousetech/gourmetj/UserSession.java | 17 +-- .../resources/WEB-INF/layout/layout.xhtml | 43 +----- .../META-INF/resources/detailEdit.xhtml | 13 ++ .../resources/META-INF/resources/main.xhtml | 4 +- src/main/resources/application.yml | 6 +- 10 files changed, 271 insertions(+), 87 deletions(-) create mode 100644 src/main/java/com/mousetech/gourmetj/CookieBean.java diff --git a/application.properties b/application.properties index 68ffaef..75d475a 100644 --- a/application.properties +++ b/application.properties @@ -21,4 +21,7 @@ spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver # My special properties gourmet.password.file=${user.home}/.gourmetpw +joinfaces.primefaces.theme=le-frog +#joinfaces.primefaces.THEME=vela +server.servlet.context-parameters.primefaces.THEME=le-frog diff --git a/pom.xml b/pom.xml index 30af0fd..ea79cd7 100644 --- a/pom.xml +++ b/pom.xml @@ -78,6 +78,12 @@ all-themes 1.0.10 + + + com.google.code.gson + gson + runtime + - - - - - - - - - - - - - - - - + \ No newline at end of file diff --git a/src/main/resources/META-INF/resources/detailEdit.xhtml b/src/main/resources/META-INF/resources/detailEdit.xhtml index cee26a6..57a24ce 100644 --- a/src/main/resources/META-INF/resources/detailEdit.xhtml +++ b/src/main/resources/META-INF/resources/detailEdit.xhtml @@ -395,6 +395,19 @@ /> + + + + + + + + diff --git a/src/main/resources/META-INF/resources/main.xhtml b/src/main/resources/META-INF/resources/main.xhtml index 3106eb5..9004e8f 100644 --- a/src/main/resources/META-INF/resources/main.xhtml +++ b/src/main/resources/META-INF/resources/main.xhtml @@ -28,7 +28,7 @@ />