Skip to content

Commit

Permalink
Call setRenderKitId within initFaces
Browse files Browse the repository at this point in the history
  • Loading branch information
volosied committed Apr 22, 2022
1 parent 7a6d5ad commit 439dac1
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,11 @@ private void initFaces(ServletContext context, ServletRequest request,
// Set up references to the application and facesContext objects
application = facesContext.getApplication();
facesContext.setViewRoot(createViewRoot());

// Set up RenderKit
String renderKitId = facesContext.getApplication().getViewHandler().calculateRenderKitId(facesContext);
facesContext.getViewRoot().setRenderKitId(renderKitId);

} else {
throw new IllegalStateException(
"Unable to obtain FacesContextFactory instance.");
Expand Down

0 comments on commit 439dac1

Please sign in to comment.