227228229230231232233234235236237
if (root != null && !root.getViewId().equals(newId)) { Map<String, Object> viewMap = root.getViewMap(false); if (viewMap != null) { ViewScopeManager manager = ViewScopeManager.getInstance(facesContext); manager.clear(facesContext); } } }