From 68462514db39f9f8055b49f8c1176c2f6ae0b7e9 Mon Sep 17 00:00:00 2001 From: tim holloway Date: Thu, 1 Feb 2024 15:52:21 -0500 Subject: [PATCH] cleanups for shopping list --- README.md | 14 ++++++++++++-- application.properties | 5 ++--- .../META-INF/resources/WEB-INF/layout/layout.xhtml | 2 +- .../META-INF/resources/shoppingList.xhtml | 6 +++--- src/main/resources/application.yml | 9 +++++---- 5 files changed, 23 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index e9d0f5e..30acbde 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Gourmet Recipe Manager - Spring Boot +# Gourmet Recipe Manager - Spring Boot - Version 2 This is a port of Thomas Hinkle (thinkle) Gourmet Recipe Manager. @@ -85,4 +85,14 @@ employed when you run this app on your local desktop. ### Improved graphics support A lot of recipe websites publish images in webp form. Support -for webp has now been added. \ No newline at end of file +for webp has now been added. + +### Better session management + +JSF tends to depend on session-scope context. Sessions, however +time out and this has been an annoyance when a recipe is being +displayed. To minimize this, better timeout mechanisms have been +installed and the recipe browser keeps last-search and search-type +values in long-lived cookies on the client. The server will read +and cache them, but if the server times out, it will automatically +re-read the cookies on the next request. \ No newline at end of file diff --git a/application.properties b/application.properties index 75d475a..c931454 100644 --- a/application.properties +++ b/application.properties @@ -21,7 +21,6 @@ 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 +# This will override aplication.yml +#server.servlet.context-parameters.primefaces.THEME=le-frog diff --git a/src/main/resources/META-INF/resources/WEB-INF/layout/layout.xhtml b/src/main/resources/META-INF/resources/WEB-INF/layout/layout.xhtml index b739d47..aeacf07 100644 --- a/src/main/resources/META-INF/resources/WEB-INF/layout/layout.xhtml +++ b/src/main/resources/META-INF/resources/WEB-INF/layout/layout.xhtml @@ -28,7 +28,7 @@