Skip to content

Commit

Permalink
feature(config): Make JSF parameters dynamically configurable. #6953
Browse files Browse the repository at this point in the history
  • Loading branch information
poikilotherm committed Mar 18, 2021
1 parent 22a5983 commit 222d654
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/main/resources/META-INF/microprofile-config.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 6 additions & 6 deletions src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<!-- <param-value>Development</param-value>-->
<param-value>Production</param-value>
<param-value>${MPCONFIG=dataverse.jsf.project-stage:Production}</param-value>
</context-param>
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>bootstrap</param-value>
<param-value>${MPCONFIG=dataverse.jsf.primefaces.theme:bootstrap}</param-value>
</context-param>
<!-- example of a hard-coded PrimePush configuration: -->
<!-- context-param -->
Expand All @@ -42,19 +42,19 @@
<param-name>
javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL
</param-name>
<param-value>true</param-value>
<param-value>${MPCONFIG=dataverse.jsf.empty-string-null:true}</param-value>
</context-param>
<context-param>
<param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>
<param-value>true</param-value>
<param-value>${MPCONFIG=dataverse.jsf.skip-comments:true}</param-value>
</context-param>
<context-param>
<param-name>javax.faces.FACELETS_BUFFER_SIZE</param-name>
<param-value>${MPCONFIG=dataverse.webxml.faces.buffer-size}</param-value>
<param-value>${MPCONFIG=dataverse.jsf.buffer-size:102400}</param-value>
</context-param>
<context-param>
<param-name>javax.faces.FACELETS_REFRESH_PERIOD</param-name>
<param-value>-1</param-value>
<param-value>${MPCONFIG=dataverse.jsf.refresh-period:-1}</param-value>
</context-param>
<!-- JSF mapping -->
<filter>
Expand Down

0 comments on commit 222d654

Please sign in to comment.