Package cn.com.annotations.parser

Examples of cn.com.annotations.parser.AnnotationParser


        try {
            String userId = FormParameterUtil.getString("userId", request);
            List<Task> tasks = OperatFactory.getServiceObject(BussinessRelationServeice.class).getTasksByUserId(userId);
            TaskIPKFormBean content = new TaskIPKFormBean();
            content.setTasks(tasks);
            AnnotationParser parser = new AnnotationParser(content, "ajax");
            parser.setCurrentComponents("table");
            ContentTemplate contentTemplate = (ContentTemplate) ApplicationStyle.getCurrentStyle().getTemplate(ContentTemplate.class);
            contentTemplate.setParser(parser);
            contentTemplate.setPermission(null);
            String content1 = contentTemplate.content();
            ActionContext.getResponse().getWriter().print(content1);
View Full Code Here


                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);
View Full Code Here

TOP

Related Classes of cn.com.annotations.parser.AnnotationParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.