* @throws PageException
* @throws PageException
*
*/
private void doGetComponent() throws PageException {
Struct sct=new StructImpl();
pageContext.setVariable(getString("admin",action,"returnVariable"),sct);
// Base Component
try {
PageSource ps = ((PageContextImpl)pageContext).getPageSourceExisting(config.getBaseComponentTemplate());
if(ps!=null) sct.set("baseComponentTemplate",ps.getDisplayPath());
else sct.set("baseComponentTemplate","");
} catch (PageException e) {
sct.set("baseComponentTemplate","");
}
sct.set("strBaseComponentTemplate",config.getBaseComponentTemplate());
// dump template
try {
PageSource ps = ((PageContextImpl)pageContext).getPageSourceExisting(config.getComponentDumpTemplate());
if(ps!=null) sct.set("componentDumpTemplate",ps.getDisplayPath());
else sct.set("componentDumpTemplate","");
} catch (PageException e) {
sct.set("componentDumpTemplate","");
}
sct.set("strComponentDumpTemplate",config.getComponentDumpTemplate());
sct.set("deepSearch",Caster.toBoolean(config.doComponentDeepSearch()));
sct.set("componentDataMemberDefaultAccess",ComponentUtil.toStringAccess(config.getComponentDataMemberDefaultAccess()));
sct.set("triggerDataMember",Caster.toBoolean(config.getTriggerComponentDataMember()));
sct.set("useShadow",Caster.toBoolean(config.useComponentShadow()));
sct.set("ComponentDefaultImport",config.getComponentDefaultImport());
sct.set("componentLocalSearch",config.getComponentLocalSearch());
sct.set("componentPathCache",config.useComponentPathCache());
}