
applications.uploadButtons.inc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of console-common Show documentation
Show all versions of console-common Show documentation
This bundle contains common code that may be shared across plugins.
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