Skip to content

Commit

Permalink
[5345] Do not override application-specified "com.sun.faces.enableDis…
Browse files Browse the repository at this point in the history
…tributable" value.
  • Loading branch information
pferraro committed Oct 31, 2023
1 parent 3456fc8 commit 7f3e522
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,11 @@ public void contextInitialized(ServletContextEvent servletContextEvent) {
}
}

if (webXmlProcessor.isDistributablePresent()) {
webConfig.setOptionEnabled(WebConfiguration.BooleanWebContextInitParameter.EnableDistributable, true);
// Do not override if already defined
if (!webConfig.isSet(WebConfiguration.BooleanWebContextInitParameter.EnableDistributable)) {
webConfig.setOptionEnabled(WebConfiguration.BooleanWebContextInitParameter.EnableDistributable, webXmlProcessor.isDistributablePresent());
}
if (webConfig.isOptionEnabled(WebConfiguration.BooleanWebContextInitParameter.EnableDistributable)) {
servletContext.setAttribute(WebConfiguration.BooleanWebContextInitParameter.EnableDistributable.getQualifiedName(), TRUE);
}

Expand Down

0 comments on commit 7f3e522

Please sign in to comment.