
templates.baseLayout.xhtml Maven / Gradle / Ivy
setResourceBundle(key="i18n" bundle="org.glassfish.admingui.core.Strings");
setResourceBundle(key="i18nc" bundle="org.glassfish.common.admingui.Strings");
getPluginIdFromViewId(viewId="#{facesContext.viewRoot.viewId}", pluginId="#{pluginId}");
setPartialRequest("false");
initSessionAttributes();
if ("!#{sessionScope.fieldLengths}") {
// Reads a properties file located at:
// v3/admingui/common/src/main/resources/org/glassfish/common/FieldLengths.properties
setResourceBundle(key="tmpLengths" bundle="org.glassfish.common.FieldLengths");
// Passes the ResourceBundle (#{tmpLengths}) into Java code... the ResourceBundle will
// need to be converted into a Map (or maybe Map?)
// and will be stored in #{sessionScope.fieldLengths}
getFieldLengths(bundle="#{tmpLengths}" result="#{sessionScope.fieldLengths}");
}
// Set expand / collapse preferences...
getPreference(default="#{false}", root="glassfish/layout", key="hideLeft", value="#{sessionScope.hideLeft}");
getPreference(default="#{false}", root="glassfish/layout", key="hideRight", value="#{sessionScope.hideRight}");
"
$resource{i18n.msg.longRunningProcess}
"
// "Skip to Navigation Menu
if ("!$session{supportCluster}") {
gf.restRequest(endpoint="#{sessionScope.REST_URL}/_get-restart-required", method="get", result="#{requestScope.result}");
setSessionAttribute(key="restartRequired", value="#{requestScope.result.data.extraProperties.entity.restartRequired}");
setSessionAttribute(key="unprocessedChanges", value="#{requestScope.result.data.extraProperties.entity.unprocessedChanges}");
}
if("$session{supportCluster}") {
setSessionAttribute(key="restartRequired" value="$boolean{false}");
}
includeFirstIntegrationPoint(type="org.glassfish.admingui:masthead" root="$this{component}");
includeFirstIntegrationPoint(type="org.glassfish.admingui:favicon" root="#{view}");
"
"
"
/*
"
// FIXME: Consider using a widget which allows multiple content types to share the right panel (i.e. accordian)
includeFirstIntegrationPoint(type="org.glassfish.admingui:rightPanel" root="$this{component}");
getIntegrationPoints(type="org.glassfish.admingui:rightPanelTitle" points="#{pageSession.rightContent}");
"
*/
"
"
© 2015 - 2025 Weber Informatics LLC | Privacy Policy