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

applications.uploadButtons.inc Maven / Gradle / Ivy

The newest version!





    $attribute{needUpload});
        if (${needUpload}){
            gf.logger(logString="GUI deployment: uploadToTempfile", level="INFO");
            uploadFileToTempDir(file="#{uploadedFile}" uploadedTempFile="#{requestScope.filePath}", origPath="#{requestScope.origPath}");
            gf.logger(logString="filePath=#{requestScope.filePath} origPath=#{requestScope.origPath}", level="FINE");
        }
        if (! ${needUpload}){
            setAttribute(key="origPath", value="#{dirPath}");
            setAttribute(key="filePath", value="#{dirPath}");
            gf.logger(logString="No upload needed. origPath=#{requestScope.origPath}, filePath=#{requestScope.filePath} ",level="FINE");

        }
        deploy(filePath="$attribute{filePath}"
              origPath="$attribute{origPath}"
              allMaps = "#{pageSession.deployMap}"
              appType = "#{pageSession.appType}"
              propertyList="$attribute{newList}"
              targets = "#{pageSession.selectedTargets}"
        );
        if( ${needUpload}) {
            gf.logger(logString="Deleting the file uploaded to Temp Directory", level="INFO");
            deleteFileFromTempDir(deleteTempFile="$attribute{filePath}");
        }
	gf.redirect(page="#{request.contextPath}/common/removeFrame.jsf?#{pageSession.listPageLink}&#{extraArgs}&alertType=${alertType}&alertSummary=${alertSummary}&alertDetail=${alertDetail}&bare=true");
    />








© 2015 - 2025 Weber Informatics LLC | Privacy Policy