All Downloads are FREE. Search and download functionalities are using the official Maven repository.

grizzly.fileCache.layout Maven / Gradle / Ivy









    
    $page{configName} default="server-config");
        getRequestValue(key="name" value="#{pageSession.Name}");
        getRequestValue(key="listenerName" value="#{pageSession.listenerName}"  default="");
        setPageSessionAttribute(key="protocolName" value="#{pageSession.Name}");
        urlencode(value="#{pageSession.Name}" encoding="UTF-8" result="#{pageSession.encodedName}");
        setPageSessionAttribute(key="encodedProtocolName" value="#{pageSession.encodedName}");
        urlencode(value="#{pageSession.listenerName}" encoding="UTF-8" result="#{pageSession.encodedListenerName}");
        getRequestValue(key="cancelTo" value="#{pageSession.cancelTo}");
        setPageSessionAttribute(key="parentPage", value="#{request.contextPath}/#{pageSession.cancelTo}")
        setPageSessionAttribute(key="childType" value="file-cache");
        setPageSessionAttribute(key="parentUrl", value="#{sessionScope.REST_URL}/configs/config/#{pageSession.configName}/network-config/protocols/protocol/#{pageSession.Name}/http");
        setPageSessionAttribute(key="selfUrl", value="#{pageSession.parentUrl}/#{pageSession.childType}");
        setPageSessionAttribute(key="rest-api" value="true");
        gf.checkIfEndPointExist(endpoint="#{pageSession.selfUrl}" exists="#{requestScope.exist}");
        if (#{requestScope.exist}){
            gf.getEntityAttrs(endpoint="#{pageSession.selfUrl}.json", valueMap="#{pageSession.fileMap}");
            setPageSessionAttribute(key="edit" value="#{true}" );
        }
        if (! #{requestScope.exist}){
            setPageSessionAttribute(key="edit" value="#{false}" )
            setPageSessionAttribute(key="showSuccessfulMsg" value="#{true}" )
            gf.getDefaultValues(endpoint="#{pageSession.selfUrl}", valueMap="#{pageSession.fileMap}");
        }
        setPageSessionAttribute(key="valueMap" value="#{pageSession.fileMap}");
        setPageSessionAttribute(key="convertToFalseList" value={"enabled"});
        //set the following for including buttons.inc
        setPageSessionAttribute(key="showDefaultButton" value="#{true}" );
        setPageSessionAttribute(key="showCancelButton" value="#{true}" );
        setPageSessionAttribute(key="hasPropertySheet" value="#{true}" );
        setPageSessionAttribute(key="hasPropertyTable" value="#{false}" );
        />
    
            



#include "/common/shared/alertMsg.inc"
                
                
#include "/common/shared/editPageButtons.inc"
                

                

#include "/common/shared/configNameSection.inc"
#include "/web/grizzly/fileCacheAttrs.inc"
                    

	
            






© 2015 - 2024 Weber Informatics LLC | Privacy Policy