Package ariba.ui.aribaweb.core

Examples of ariba.ui.aribaweb.core.AWTemplate.templateName()


    public void initWithContext (Context context, AWComponent component)
    {
        Meta meta = context.meta();
        AWTemplate template = component.template();
        String templateId = template.templateName().intern();
        TemplateData data = (TemplateData)meta.identityCache().get(templateId);
        if (data != null && data.template != template) {
            // unload rules
            for (Map.Entry<MetaRules, Meta.RuleSet> entry : data.elementMap.entrySet()) {
                Meta.RuleSet ruleSet = entry.getValue();
View Full Code Here


            meta.identityCache().put(templateId, data);
        }

        Meta.RuleSet ruleSet= data.elementMap.get(this);
        if (ruleSet == null) {
            meta.beginRuleSet(Meta.TemplateRulePriority, template.templateName());
            try {
                new Parser(meta, contentString()).addRulesWithSelector(
                        Arrays.asList(new Rule.Selector(TemplateId, templateId)));
            } catch (Error e) {
                meta.endRuleSet().disableRules();
View Full Code Here

            try {
                new Parser(meta, contentString()).addRulesWithSelector(
                        Arrays.asList(new Rule.Selector(TemplateId, templateId)));
            } catch (Error e) {
                meta.endRuleSet().disableRules();
                throw new AWGenericException(Fmt.S("Error reading rules in <m:Rules> tag in %s -- %s", template.templateName(), e));
            } catch (Exception e) {
                meta.endRuleSet().disableRules();
                throw new AWGenericException(Fmt.S("Exception reading rules in <m:Rules> tag in %s", template.templateName()), e);
            }
            data.elementMap.put(this, meta.endRuleSet());
View Full Code Here

            } catch (Error e) {
                meta.endRuleSet().disableRules();
                throw new AWGenericException(Fmt.S("Error reading rules in <m:Rules> tag in %s -- %s", template.templateName(), e));
            } catch (Exception e) {
                meta.endRuleSet().disableRules();
                throw new AWGenericException(Fmt.S("Exception reading rules in <m:Rules> tag in %s", template.templateName()), e);
            }
            data.elementMap.put(this, meta.endRuleSet());
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.