.main.admingui.console-jca-plugin.8.0.0-M5.source-code.adminObjectAttr.inc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of console-jca-plugin Show documentation
Show all versions of console-jca-plugin Show documentation
Connectors plugin bundle for GlassFish Admin Console
#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