Examples of templateName()


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

                {
                    printWriter.println("\tat " + trace[i]);
                }
                AWBaseElement cref = _componentStack.get(pos++);
                StackTraceElement compElement = trace[i + 1];
                String tName = cref.templateName();
                tName = (tName == null) ? "null" :
                    tName.substring(tName.lastIndexOf('/') + 1);

                printWriter.print("\tat " + compElement.getClassName());
                if (compElement.getClassName().equals(AWComponent.class.getName())
View Full Code Here

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

            }
            else if (pos < _componentStack.size()
                && trace[i].getClassName().equals(AWIncludeContent.class.getName()))
            {
                AWBaseElement cref = _componentStack.get(pos++);
                String tName = cref.templateName();
                tName = (tName == null) ? "null"
                    : tName.substring(tName.lastIndexOf('/') + 1);

                printWriter.println("\tat " + trace[i] + "<" + tName + ":"
                    + cref.lineNumber() + ">");
View Full Code Here

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

        AWComponentDefinition result = application().componentDefinitionForName(_awlName);
        if (result == null) {
            _awlLookupResult = "No resource found";
        }
        else {
            String templateName = result.templateName();
            AWResource resource = application().resourceManager().resourceNamed(templateName);
            _awlLookupResult = "Class: " + result.componentClass().getName() + "<br>"
                                  + "Template Name: " + templateName  + "<br>"
                                  + "Resource: " + ((resource != null) ? resource.toString() : "null");
        }
View Full Code Here

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

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

            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

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

            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

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

            } 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

Examples of er.extensions.components.conditionals.ERXWOTemplate.templateName()

      else {
            for(Enumeration e = group.childrenElements().objectEnumerator(); e.hasMoreElements() && result == null ; ) {
              WOElement current = (WOElement) e.nextElement();
              if(current instanceof ERXWOTemplate) {
                ERXWOTemplate template = (ERXWOTemplate)current;
                String name = template.templateName(component);
                if(name.equals(templateName)) {
                  result = template;
                }
              }
            }
View Full Code Here

Examples of er.extensions.components.conditionals.ERXWOTemplate.templateName()

              }
            }
      }
    } else if (content instanceof ERXWOTemplate) {
      ERXWOTemplate template = (ERXWOTemplate) content;
        String name = template.templateName(component);
        if(name.equals(templateName)) {
          result = template;
        }
    } else if (content instanceof WOHTMLBareString && templateName == null) {
      result=content;
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.