webApp.redeploy.jsf Maven / Gradle / Ivy
The newest version!
$page{appType});
getRequestValue(key="appName" value=>$page{appName});
getRequestValue(key="nextPage" value=>$page{nextPage});
setAttribute(key="chooseType" value="$boolean{false}");
setAttribute(key="keepSessions" value="$boolean{false}");
getAppTypeForDisplay(appType="$pageSession{appType}" displayType=>$page{displayType});
/>
#include "/shared/restart.inc"
#include "/shared/treeBreadcrumbs.inc"
#include "/shared/alertMsg.inc"
$attribute{needUpload});
if (${needUpload}){
uploadFileToTempDir(file="#{uploadedFile}" uploadedTempFile=>$attribute{filePath}, origPath=>$attribute{origPath});
}
if (! ${needUpload}){
setAttribute(key="origPath", value="#{dirPath}");
setAttribute(key="filePath", value="#{dirPath}");
}
redeploy(filePath="$attribute{filePath}" , origPath="$attribute{origPath}" appName="#{appName}" keepSessions="#{keepSessions}");
redirect(page="webApplications.jsf?alertType=${alertType}&alertSummary=${alertSummary}&alertDetail=${alertDetail}");
/>
"
#include "uploadComponent.inc"
#include "uploadJS.inc"