From 222d6545b415da258ad3be1ffd6beaf3dbb5dd43 Mon Sep 17 00:00:00 2001 From: Oliver Bertuch Date: Wed, 17 Mar 2021 16:02:41 +0100 Subject: [PATCH] feature(config): Make JSF parameters dynamically configurable. #6953 --- .../META-INF/microprofile-config.properties | 2 -- src/main/webapp/WEB-INF/web.xml | 12 ++++++------ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/main/resources/META-INF/microprofile-config.properties b/src/main/resources/META-INF/microprofile-config.properties index 2b7aa405f32..8c475f1c050 100644 --- a/src/main/resources/META-INF/microprofile-config.properties +++ b/src/main/resources/META-INF/microprofile-config.properties @@ -2,5 +2,3 @@ dataverse.db.host=localhost dataverse.db.port=5432 dataverse.db.user=dataverse dataverse.db.name=dataverse - -dataverse.webxml.faces.buffer-size=102400 \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml index a1c99457ee6..5413f902595 100644 --- a/src/main/webapp/WEB-INF/web.xml +++ b/src/main/webapp/WEB-INF/web.xml @@ -27,11 +27,11 @@ javax.faces.PROJECT_STAGE - Production + ${MPCONFIG=dataverse.jsf.project-stage:Production} primefaces.THEME - bootstrap + ${MPCONFIG=dataverse.jsf.primefaces.theme:bootstrap} @@ -42,19 +42,19 @@ javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL - true + ${MPCONFIG=dataverse.jsf.empty-string-null:true} javax.faces.FACELETS_SKIP_COMMENTS - true + ${MPCONFIG=dataverse.jsf.skip-comments:true} javax.faces.FACELETS_BUFFER_SIZE - ${MPCONFIG=dataverse.webxml.faces.buffer-size} + ${MPCONFIG=dataverse.jsf.buffer-size:102400} javax.faces.FACELETS_REFRESH_PERIOD - -1 + ${MPCONFIG=dataverse.jsf.refresh-period:-1}