Object bundleObj = (bundleObject == null) ? null : pageContext.getAttribute(bundleObject, PageContext.REQUEST_SCOPE);
if (bundleObj == null) {
bundleObj = InstanceCreator.getInstance(className);
ifIniting = true;
}
AnnotationParser parser = new AnnotationParser(bundleObj, group);
// 设定元素的默认值
if (ifIniting) {
parser.settingDefaultValue();
}
ApplicationStyle style = settingAppStyle(pageContext);
// 设定模板路径
templatePath = style.getTemplatePath();
// 设定许可
Permission permissionImpl = null;
if (isPermission()) {
permissionImpl = PermissionManager.getUserPermission();
}
ContentTemplate contentTemplate = (ContentTemplate) style.getTemplate(ContentTemplate.class);
contentTemplate.setParser(parser);
contentTemplate.setPermission(permissionImpl);
String content = contentTemplate.content();
settingContentScope(pageContext, content, parser.getTitle());
template = (templatePath == null ? _BLANK : templatePath) + template;
pageContext.include(template);
} catch (AppException ex) {
settingContentScope(pageContext, ex.getMessage(), _ERROR_TITLE_DISPLAY);