
resourceNode.resourceEditTargets.jsf 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!
#include "/common/resourceNode/resourceEditTabs.inc"
#include "/common/shared/alertMsg_1.inc"
"
#include "/common/resourceNode/resourceNameSection.inc"
>
$page{tableId});
/>
$page{topActionGroup});
/>
$attribute{tableRowGroup});
getSelectedSingleMapRows(TableRowGroup="${tableRowGroup}" selectedRows=>$attribute{selectedRows});
foreach (var="row" list="#{requestScope.selectedRows}") {
gf.createAttributeMap(keys={"enabled"} values={"true"} map="#{requestScope.attrMap}");
gf.restRequest(endpoint="#{row.endpoint}"
attrs="#{requestScope.attrMap}"
method="post");
}
setAttribute(key="selectedRows" value="${selectedRows}");
prepareAlertMsg(summary="$resource{i18n.msg.enableResourceOnTargetsSuccessful}", type="success");
gf.redirect(page="#{pageSession.targetPage}&generalPage=#{pageSession.generalPage}&alertType=${alertType}&alertSummary=${alertSummary}&alertDetail=${alertDetail}");
/>
$attribute{tableRowGroup});
getSelectedSingleMapRows(TableRowGroup="${tableRowGroup}" selectedRows=>$attribute{selectedRows});
foreach (var="row" list="#{requestScope.selectedRows}") {
gf.createAttributeMap(keys={"enabled"} values={"false"} map="#{requestScope.attrMap}");
gf.restRequest(endpoint="#{row.endpoint}"
attrs="#{requestScope.attrMap}"
method="post");
}
setAttribute(key="selectedRows" value="${selectedRows}");
prepareAlertMsg(summary="$resource{i18n.msg.disableResourceOnTargetsSuccessful}", type="success");
gf.redirect(page="#{pageSession.targetPage}&generalPage=#{pageSession.generalPage}&alertType=${alertType}&alertSummary=${alertSummary}&alertDetail=${alertDetail}");
/>
$page{targetTableRowGroupId});
/>
#include "/common/shared/changeButtonsJS.inc"
© 2015 - 2025 Weber Informatics LLC | Privacy Policy