Skip to content

Commit

Permalink
Fix view creation
Browse files Browse the repository at this point in the history
Signed-off-by: avpinchuk <alexander.v.pinchuk@gmail.com>
  • Loading branch information
avpinchuk committed Oct 25, 2022
1 parent b1b571e commit 041723a
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,7 @@ public UIViewRoot createView(FacesContext context, String viewId) {

// Check to see if jsftemplating should create the view
if (!this.isMappedView(viewId) || viewId == null) {
UIViewRoot viewRoot = _oldViewHandler.createView(context, viewId);
return viewRoot;
return _oldViewHandler.createView(context, viewId);
}

Locale locale = null;
Expand All @@ -158,7 +157,7 @@ public UIViewRoot createView(FacesContext context, String viewId) {
}

// Create the ViewRoot
UIViewRoot viewRoot = _oldViewHandler.createView(context, viewId);
UIViewRoot viewRoot = (UIViewRoot) context.getApplication().createComponent(UIViewRoot.COMPONENT_TYPE);
viewRoot.setViewId(viewId);
ViewRootUtil.setLayoutDefinitionKey(viewRoot, viewId);

Expand Down

0 comments on commit 041723a

Please sign in to comment.