setResourceBundle(key="i18n" bundle="org.glassfish.admingui.core.Strings"); if(!$session{supportCluster}) { if (!$pageSession{configName}) { setPageSessionAttribute(key="configName" value="server-config"); } } getPluginIdFromViewId(viewId="#{facesContext.viewRoot.viewId}", pluginId="#{pluginId}"); setPartialRequest("false"); 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}"); } gf.restRequest(endpoint="#{request.scheme}://#{sessionScope.serverName}:#{sessionScope.serverPort}/management/domain/anonymous-user-enabled" method="GET", result="#{requestScope.result}", quiet="true"); setPageSessionAttribute(key="loginUser" value="#{requestScope.result.data.extraProperties.anonymousUserName}"); setPageSessionAttribute(key="anonymousUserEnabled", value="#{requestScope.result.data.extraProperties.anonymousUserEnabled}"); setSessionAttribute(key="showLogoutButton" value="#{pageSession.anonymousUserEnabled != 'true'}"); if ("!(#{sessionScope.restartRequired})") { if ("!(#{sessionScope.showLogoutButton})") { setAttribute(key="reloadJS" value="if (document.getElementById('Masthead:statusPanel:restartLink') || document.getElementById('Masthead:logoutLink')) {reloadHeaderFrame();}"); } if ("#{sessionScope.showLogoutButton}") { setAttribute(key="reloadJS" value="if (document.getElementById('Masthead:statusPanel:restartLink') || !document.getElementById('Masthead:logoutLink')) {reloadHeaderFrame();}"); } } if ("#{sessionScope.restartRequired}") { if ("!(#{sessionScope.showLogoutButton})") { setAttribute(key="reloadJS" value="if (!document.getElementById('Masthead:statusPanel:restartLink') || document.getElementById('Masthead:logoutLink')) {reloadHeaderFrame();}"); } if ("#{sessionScope.showLogoutButton}") { setAttribute(key="reloadJS" value="if (!document.getElementById('Masthead:statusPanel:restartLink') || !document.getElementById('Masthead:logoutLink')) {reloadHeaderFrame();}"); } } if ("!(#{sessionScope._currentUpdateCountMsg}=#{sessionScope._updateCountMsg})"){ setAttribute(key="reloadJS" , value="reloadHeaderFrame();"); setSessionAttribute(key="_currentUpdateCountMsg", value="#{sessionScope._updateCountMsg}"); } // Need to write the title so it is updated in the browser. //****************************************************************************** // Do not put a script as the first element on the page. IE will ignore it. //****************************************************************************** "
Content Missing! "