
.admingui.console-jdbc-plugin.3.1.1-b06.source-code.jdbcConnectionPoolNew2Buttons.inc Maven / Gradle / Ivy
$attribute{tableRowGroup});
getAllSingleMapRows(TableRowGroup="$attribute{tableRowGroup}", Rows=>$attribute{newList});
setSessionAttribute(key="wizardPoolProperties", value="$attribute{newList}");
setAttribute(key="fromStep2" value="#{true}")
gf.navigate(page="#{request.contextPath}/jdbc/#{step1Page}");
/>
$attribute{resultEndPoint});
if (#{pageSession.hasPropertyTable}){
removeEmptyProps(props="#{pageSession.tableList}" modifiedProps="#{pageSession.tableList}");
javaToJSON(obj="#{pageSession.tableList}" json="#{requestScope.tmpJSON}");
urlencode(value="#{wizardMap['name']}" encoding="UTF-8" result="#{pageSession.encodeName}");
gf.restRequest(endpoint="#{pageSession.parentUrl}/#{pageSession.childType}/#{pageSession.encodeName}/property.json"
method="POST"
data="#{requestScope.tmpJSON}"
result="#{requestScope.restResponse}");
}
if ("#{wizardMap['ping']}") {
urlencode(value="#{wizardMap['name']}" encoding="UTF-8" result="#{pageSession.encodedName}");
gf.createAttributeMap(keys={"id"} values={"$pageSession{encodedName}"} map="#{requestScope.attrMap}");
gf.restRequest(endpoint="#{sessionScope.REST_URL}/resources/ping-connection-pool.json"
attrs="#{requestScope.attrMap}"
method="get"
throwException="#{false}"
result="#{requestScope.result}");
if ("#{requestScope.result.data['exit_code']} = SUCCESS") {
prepareAlertMsg(summary="$resource{i18n.msg.PingSucceed}", type="success");
}
if ("!(#{requestScope.result.data['exit_code']} = SUCCESS)") {
prepareAlertMsg(summary="$resource{i18njdbc.msg.warning.poolCreatedPingFailed}", detail="#{requestScope.result.data.message}", type="error");
}
setSessionAttribute(key="wizardMap" value="#{null}")
setSessionAttribute(key="wizardPoolExtra" value="#{null}")
setSessionAttribute(key="wizardPoolProperties" value="#{null}")
gf.redirect(page="#{parentPage}?alertType=${alertType}&alertSummary=${alertSummary}&alertDetail=${alertDetail}");
}
if ("!#{wizardMap['ping']}") {
setSessionAttribute(key="wizardMap" value="#{null}")
setSessionAttribute(key="wizardPoolExtra" value="#{null}")
setSessionAttribute(key="wizardPoolProperties" value="#{null}")
gf.redirect(page="#{parentPage}");
}
/>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy