.admingui.console-corba-plugin.3.1.1-b07.source-code.orb.jsf Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of console-corba-plugin
Show all versions of console-corba-plugin
Corba plugin bundle for GlassFish V3 Admin Console
$page{configName} default="server-config");
setPageSessionAttribute(key="childType" value="orb");
setPageSessionAttribute(key="parentUrl", value="#{sessionScope.REST_URL}/configs/config/#{pageSession.configName}/iiop-service");
setPageSessionAttribute(key="selfUrl", value="#{pageSession.parentUrl}/#{pageSession.childType}");
setPageSessionAttribute(key="rest-api" value="true");
gf.getEntityAttrs(endpoint="#{pageSession.selfUrl}.json", valueMap="#{pageSession.valueMap}");
gf.restRequest(endpoint="#{pageSession.selfUrl}/property.json" method="GET" result="#{requestScope.propTable}");
setPageSessionAttribute(key="tableList" value="#{requestScope.propTable.data.extraProperties.properties}");
setPageSessionAttribute(key="selfPage" value="#{request.contextPath}/corba/orb.jsf?configName=#{pageSession.configName}");
setPageSessionAttribute(key="has2Objects" value="#{true}" ); //for editPageButtons.inc
setPageSessionAttribute(key="childType2" value="iiop-service");
setPageSessionAttribute(key="parentUrl2", value="#{sessionScope.REST_URL}/configs/config/#{pageSession.configName}");
setPageSessionAttribute(key="selfUrl2", value="#{pageSession.parentUrl2}/#{pageSession.childType2}");
setPageSessionAttribute(key="rest-api" value="true");
setPageSessionAttribute(key="convertToFalseList2" value={"clientAuthenticationRequired"});
gf.getEntityAttrs(endpoint="#{pageSession.selfUrl2}.json", valueMap="#{pageSession.valueMap2}");
//set the following for including buttons.inc
setPageSessionAttribute(key="edit" value="#{true}" );
setPageSessionAttribute(key="showDefaultButton" value="#{true}" );
setPageSessionAttribute(key="showCancelButton" value="#{false}" );
setPageSessionAttribute(key="hasPropertySheet" value="#{true}" );
setPageSessionAttribute(key="hasPropertyTable" value="#{true}" );
/>
#include "/common/shared/alertMsg.inc"
#include "/common/shared/editPageLoadDefaultButton.inc"
$attribute{tableRowGroup});
getAllSingleMapRows(TableRowGroup="$attribute{tableRowGroup}", Rows=>$attribute{newList});
removeEmptyProps(props="#{pageSession.tableList}" modifiedProps="#{pageSession.tableList}");
javaToJSON(obj="#{pageSession.tableList}" json="#{requestScope.tmpJSON}");
gf.restRequest(endpoint="#{pageSession.selfUrl}/property.json" method="POST" data="#{requestScope.tmpJSON}" result="#{requestScope.restResponse}");
prepareSuccessfulMsg();
gf.redirect(page="#{selfPage}&alertType=${alertType}&alertSummary=${alertSummary}&alertDetail=${alertDetail}");
/>
#include "/common/shared/configNameSection.inc"
#include "/common/shared/propertyDescTable.inc"
"
#include "/common/shared/changeButtonsJS.inc"