if (log.isDebugEnabled())
log.debug("Exiting restoreTreeStructure - No tree structure state found in client request");
return null;
}
TreeStructureManager tsm = new TreeStructureManager();
uiViewRoot = tsm.restoreTreeStructure((TreeStructureManager.TreeStructComponent) treeStructure);
if (log.isTraceEnabled()) log.trace("Tree structure restored from client request");
}
else {
String sequenceStr = getSequenceString(facesContext, renderKitId, viewId);
//reconstruct tree structure from ServletSession
SerializedView serializedView = getSerializedViewFromServletSession(facesContext,
viewId,
sequenceStr);
if (serializedView == null) {
if (log.isDebugEnabled())
log.debug("Exiting restoreTreeStructure - No serialized view found in server session!");
return null;
}
Object treeStructure = serializedView.getStructure();
if (treeStructure == null) {
if (log.isDebugEnabled())
log.debug("Exiting restoreTreeStructure - No tree structure state found in server session, former UIViewRoot must have been transient");
return null;
}
TreeStructureManager tsm = new TreeStructureManager();
uiViewRoot = tsm.restoreTreeStructure((TreeStructureManager.TreeStructComponent) serializedView.getStructure());
if (log.isTraceEnabled()) log.trace("Tree structure restored from server session");
}
if (log.isTraceEnabled()) log.trace("Exiting restoreTreeStructure");
return uiViewRoot;