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

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

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




   
#include "/common/applications/applicationHandlers.inc"

    
    
        
            
                $page{nameId});
                />
            
        

        
            
            $page{resCompId});
            />
            
        


        
            
                
                $page{resAdaptorPropId});
                />
                $attribute{statusComponent});
                        getUIComponentProperty(component="$attribute{statusComponent}", name="submittedValue", value=>$attribute{status});
                    }
                    getUIComponent(clientId="#{descId}", component=>$attribute{descComponent});
                    getUIComponentProperty(component="$attribute{descComponent}", name="submittedValue", value=>$attribute{desc});
                    //gf.navigate works only for new page & not for edit page
                    //conversely gf.redirect works only for edit page & not new page
                    //needs more investigation - same scenario in component below too
                    if(!#{edit}){
                        getUIComponent(clientId="#{resCompId}", component=>$attribute{nameComponent});
                        getUIComponentProperty(component="$attribute{nameComponent}", name="submittedValue", value=>$attribute{nameChosen});
                        gf.navigate(page="#{selfPage}");
                    }
                    if(#{edit}){
                        getUIComponent(clientId="#{nameId}", component=>$attribute{nameComponent});
                        getUIComponentProperty(component="$attribute{nameComponent}", name="value", value=>$attribute{nameChosen});
                        if(#{statusId}) {
                            gf.redirect(page="#{selfPage}&reload=#{reload}&name=$attribute{nameChosen}&resAdapter=#{resAdapter}&description=#{desc}&status=#{status[0]}");
                        }
                        if(!#{statusId}) {
                            gf.redirect(page="#{selfPage}&reload=#{reload}&name=$attribute{nameChosen}&resAdapter=#{resAdapter}&description=#{desc}");
                        }
                    }
                 />
           
        

        
            
            $page{resTypePropId});
             />
            $attribute{resAdaptorComponent});
                    getUIComponentProperty(component="$attribute{resAdaptorComponent}", name="selected", value=>$attribute{resAdapter});
                    if(#{statusId}) {
                        getUIComponent(clientId="#{statusId}", component=>$attribute{statusComponent});
                        getUIComponentProperty(component="$attribute{statusComponent}", name="submittedValue", value=>$attribute{status});
                    }
                    getUIComponent(clientId="#{descId}", component=>$attribute{descComponent});
                    getUIComponentProperty(component="$attribute{descComponent}", name="submittedValue", value=>$attribute{desc});
                    if(!#{edit}){
                        getUIComponent(clientId="#{resCompId}", component=>$attribute{nameComponent});
                        getUIComponentProperty(component="$attribute{nameComponent}", name="submittedValue", value=>$attribute{nameChosen});
                        gf.navigate(page="#{selfPage}");
                    }
                    if(#{edit}){
                        getUIComponent(clientId="#{nameId}", component=>$attribute{nameComponent});
                        getUIComponentProperty(component="$attribute{nameComponent}", name="value", value=>$attribute{nameChosen});
                        if(#{statusId}) {
                            gf.redirect(page="#{selfPage}&reload=#{reload}&name=$attribute{nameChosen}&resType=#{resType}&resAdapter=$attribute{resAdapter}&description=#{desc}&status=#{status[0]}");
                        }
                        if(!#{statusId}) {
                            gf.redirect(page="#{selfPage}&reload=#{reload}&name=$attribute{nameChosen}&resType=#{resType}&resAdapter=$attribute{resAdapter}&description=#{desc}");
                        }
                    }
                />
            
          

        
            
                $attribute{resAdaptorComponent});
                    getUIComponentProperty(component="$attribute{resAdaptorComponent}", name="selected", value=>$attribute{resAdapter});
                    getUIComponent(clientId="#{resTypePropId}", component=>$attribute{resTypeComponent});
                    getUIComponentProperty(component="$attribute{resTypeComponent}", name="selected", value=>$attribute{resType});
                    if(#{statusId}) {
                        getUIComponent(clientId="#{statusId}", component=>$attribute{statusComponent});
                        getUIComponentProperty(component="$attribute{statusComponent}", name="submittedValue", value=>$attribute{status});
                    }
                    getUIComponent(clientId="#{descId}", component=>$attribute{descComponent});
                    getUIComponentProperty(component="$attribute{descComponent}", name="submittedValue", value=>$attribute{desc});
                    if(!#{edit}){
                        getUIComponent(clientId="#{resCompId}", component=>$attribute{nameComponent});
                        getUIComponentProperty(component="$attribute{nameComponent}", name="submittedValue", value=>$attribute{nameChosen});
                        gf.navigate(page="#{selfPage}");
                    }
                />
            
        
        
            
                $page{descId});
                />
            
        
        
            
            
                $page{statusId});                    
                />
            
        
        
            
                
           
       
        "





© 2015 - 2024 Weber Informatics LLC | Privacy Policy