String allSectionsOpenStr = (String) getParameter("allSectionsOpen");
allSectionsOpen = allSectionsOpenStr != null && Boolean.valueOf(allSectionsOpenStr).booleanValue();
String markOppenedSections = getPanel().getParameterValue(TreeMenuDriver.PARAM_MARK_OPENED_SECTIONS);
Section section = getSection();
openedPages.add(section.getDbid());
if (Boolean.parseBoolean(markOppenedSections)) {
while ((section = section.getParent()) != null) {
openedPages.add(section.getDbid());
}
}
WorkspaceImpl workspace = (WorkspaceImpl) getWorkspace();
Section[] rootSections = workspace.getAllRootSections();
renderFragment("outputStart");
if (isEditMode) {
if (rootSections != null) {
for (int i = 0; i < rootSections.length; i++) {
Section rootSection = rootSections[i];
setAttribute("pageId", rootSection.getId());
setAttribute("checked", isChecked(rootSection));
setAttribute("sectionName", getLocalizedValue(rootSection.getTitle()));
renderFragment("pageStart");
renderSectionEditionMode(rootSection, 1);
renderFragment("pageEnd");
}
}
} else {
if (rootSections != null) {
for (int i = 0; i < rootSections.length; i++) {
Section rootSection = rootSections[i];
renderSection(rootSection, 1);
}
}
}
if (isEditMode)