.main.admingui.console-jdbc-plugin.7.0.0.source-code.jdbcConnectionPoolAdvance.jsf Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of console-jdbc-plugin Show documentation
Show all versions of console-jdbc-plugin Show documentation
JDBC plugin bundle for GlassFish Admin Console
$attribute{tableDropdownTextId});
getUIComponent(clientId="$pageSession{validCNDropdownTextId}" component=>$attribute{validCNDropdownTextId});
setDisableConnectionPoolTableField(tableDD="$attribute{tableDropdownTextId}" validationField="$attribute{validCNDropdownTextId}" methodValue="#{pageSession.valueMap['connectionValidationMethod']}");
/>
$attribute{encodedClassName});
}
if("!(#{pageSession.valueMap.resType}=java.sql.Driver)") {
urlencode(value="#{pageSession.valueMap.datasourceClassname}" encoding="UTF-8" result=>$attribute{encodedClassName});
}
gf.filterMap(map="#{pageSession.valueMap}" attrNames="#{pageSession.poolGeneralAttrs}" keep="#{false}" resultMap="#{pageSession.valueMap}");
setPageSessionAttribute(key="convertToFalseList" value={"wrapJdbcObjects" "pooling" "connectionLeakReclaim" "statementLeakReclaim"
"lazyConnectionAssociation" "lazyConnectionEnlistment"
"associateWithThread" "matchConnections" "allowNonComponentCallers"
"isConnectionValidationRequired" "failAllConnections"});
setPageSessionAttribute(key="skipAttrsList", value={"jndiName"});
gf.createAttributeMap(keys={"poolName"} values={"$pageSession{encodedName}"} map="#{pageSession.attrMap}");
if(#{pageSession.isAppScopedRes}){
mapPut(map="#{pageSession.attrMap}" key="appName" value="#{pageSession.encodedAppName}");
if(#{pageSession.moduleName}){
mapPut(map="#{pageSession.attrMap}" key="modulename" value="#{pageSession.encodedModuleName}");
}
}
gf.createAttributeMap(keys={"className"} values={"$attribute{encodedClassName}"} map="#{pageSession.validCNAttrMap}");
if ("#{pageSession.valueMap.isConnectionValidationRequired}=true") {
if ("#{pageSession.valueMap.connectionValidationMethod}=custom-validation") {
gf.restRequest(endpoint="#{sessionScope.REST_URL}/resources/get-validation-class-names"
attrs="#{pageSession.validCNAttrMap}"
method="get"
result="#{requestScope.result}");
setPageSessionAttribute(key="classNameList" value="#{requestScope.result.data.extraProperties.validationClassNames}");
gf.containedIn(list="#{pageSession.classNameList}" testStr="#{pageSession.valueMap.validationClassname}" contain="#{requestScope.isClassNames}");
}
}
setAttribute(key="emptyStr" value="");
setPageSessionAttribute(key="myTableOption" value="text");
setPageSessionAttribute(key="myValidCNOption" value="dropdown");
if (#{pageSession.valueMap.validationTableName}) {
if ("!(#{pageSession.valueMap.validationTableName}='')") {
setPageSessionAttribute(key="tableTextValue" value="#{pageSession.valueMap.validationTableName}");
setPageSessionAttribute(key="myTableOption" value="text");
}
}
if (#{requestScope.isClassNames}) {
setPageSessionAttribute(key="validCNDropDownValue" value="#{pageSession.valueMap.validationClassname}");
}
if (!#{requestScope.isClassNames}) {
if (#{pageSession.valueMap.validationClassname}) {
if ("!(#{pageSession.valueMap.validationClassname}='')") {
setPageSessionAttribute(key="validCNTextValue" value="#{pageSession.valueMap.validationClassname}");
setPageSessionAttribute(key="myValidCNOption" value="text");
}
}
}
//set the following for including buttons.inc
setPageSessionAttribute(key="edit" value="#{true}" );
setPageSessionAttribute(key="showDefaultButton" value="#{true}" );
/>
#include "/jdbc/jdbcConnectionPoolTabs.inc"
#include "/common/shared/alertMsg_1.inc"
#include "/common/shared/editPageLoadDefaultButton.inc"
#include"/jdbc/jdbcConnectionPoolAdvanceButtons.inc"
#include "/jdbc/advancePool.inc"
"
#include"/jdbc/jdbcConnectionPoolAdvanceButtons.inc"
#include "/jdbc/lazyConnectionJS.inc"
#include "/jdbc/jdbcConnectionPoolAdvanceJS.inc"