Examples of WOElement


Examples of com.webobjects.appserver.WOElement

  public boolean hasTemplateInComponent()
  {
    boolean result = false;

    WOElement content = _childTemplate();
    if (content instanceof WODynamicGroup)
    {
      WODynamicGroup group = (WODynamicGroup) content;
      for (Enumeration<WOElement> e = group.childrenElements().objectEnumerator(); e.hasMoreElements() && !result;)
      {
        WOElement current = e.nextElement();
        if (current instanceof ERXWOTemplate)
        {
          result = true;
        }
      }
View Full Code Here

Examples of com.webobjects.appserver.WOElement

    parseDeclarations();
    for (Enumeration e = declarations().objectEnumerator(); e.hasMoreElements();) {
      WODeclaration declaration = (WODeclaration) e.nextElement();
      processDeclaration(declaration);
    }
    WOElement woelement = parseHTML();
    return woelement;
  }
View Full Code Here

Examples of com.webobjects.appserver.WOElement

    WOHTMLWebObjectTag webobjectTag = _currentWebObjectTag.parentTag();
    if (webobjectTag == null) {
      throw new WOHelperFunctionHTMLFormatException("<" + getClass().getName() + "> Unbalanced WebObject tags. Either there is an extra closing </WEBOBJECT> tag in the html template, or one of the opening <WEBOBJECT ...> tag has a typo (extra spaces between a < sign and a WEBOBJECT tag ?).");
    }
    try {
      WOElement element = _currentWebObjectTag.dynamicElement(_declarations, _languages);
      _currentWebObjectTag = webobjectTag;
      _currentWebObjectTag.addChildElement(element);
    }
    catch (RuntimeException e) {
      throw new RuntimeException("Unable to load the component named '" + componentName(_currentWebObjectTag) + "' with the declaration " + prettyDeclaration((WODeclaration) _declarations.objectForKey(_currentWebObjectTag.name())) + ". Make sure the .wo folder is where it's supposed to be and the name is spelled correctly.", e);
View Full Code Here

Examples of com.webobjects.appserver.WOElement

    }
    return declarationStr.toString();
  }

  private WOElement parseHTML() throws WOHelperFunctionHTMLFormatException, WOHelperFunctionDeclarationFormatException, ClassNotFoundException {
    WOElement currentWebObjectTemplate = null;
    if (_HTMLString != null && _declarations != null) {
      WOHelperFunctionHTMLParser htmlParser = new WOHelperFunctionHTMLParser(this, _HTMLString);
      htmlParser.parseHTML();
      String webobjectTagName = _currentWebObjectTag.name();
      if (webobjectTagName != null) {
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.