All Downloads are FREE. Search and download functionalities are using the official Maven repository.

.admingui.console-jca-plugin.3.1.1-b11.source-code.editPageWizardButtons.inc Maven / Gradle / Ivy

There is a newer version: 3.2-b06
Show newest version




    
        
            
                $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}/jca/connectorConnectionPoolNew1.jsf")
                 />
            
            
                 $attribute{resultEndPoint});
                    if (#{pageSession.hasPropertyTable}){
                        getUIComponent(clientId="$pageSession{propertyTableRowGroupId}", component=>$attribute{tableRowGroup});
                        getAllSingleMapRows(TableRowGroup="$attribute{tableRowGroup}",  Rows=>$attribute{newList});
                        removeEmptyProps(props="#{newList}" modifiedProps="#{newList}");
                        javaToJSON(obj="#{newList}" json="#{requestScope.tmpJSON}");
                        urlencode(value="#{sessionScope.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 ("#{sessionScope.wizardMap['ping']}") {
                        urlencode(value="#{sessionScope.wizardMap['name']}" encoding="UTF-8" result="#{pageSession.encodeName}");
                        gf.createAttributeMap(keys={"id"} values={"$pageSession{encodeName}"} map="#{requestScope.attrMap}");
                        gf.restRequest(endpoint="#{sessionScope.REST_URL}/resources/ping-connection-pool"
                                       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{i18njca.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}");
                    }
                    setSessionAttribute(key="wizardMap" value="#{null}")
                    setSessionAttribute(key="wizardPoolExtra" value="#{null}")
                    setSessionAttribute(key="wizardPoolProperties" value="#{null}")
                    gf.redirect(page="#{parentPage}")
                />
            
            
                
            
        
    




© 2015 - 2024 Weber Informatics LLC | Privacy Policy