if (null != viewIdHolder && viewIdHolder.skipNavigation(viewId)) {
viewIdHolder.setViewId(viewId);
riRoot = facesContext.getViewRoot();
} else {
riRoot = super.createView(facesContext, viewId);
riRoot.addPhaseListener(new RenderPhaseComponentListener());
// Reset ajax request status for a navigation case.
if(null != facesContext.getViewRoot()){
ajaxContext.setAjaxRequest(false);
}
}