Package com.webobjects.appserver

Examples of com.webobjects.appserver.WOComponent.parent()


    @Override
    public void takeValuesFromRequest(WORequest worequest, WOContext wocontext) {
      WOComponent component = wocontext.component();
      WOElement template = template(component);
      if(template != null) {
        wocontext._setCurrentComponent(component.parent());
         template.takeValuesFromRequest(worequest, wocontext);
        wocontext._setCurrentComponent(component);
      } else {
        _defaultTemplate.takeValuesFromRequest(worequest, wocontext);
      }
View Full Code Here


    public WOActionResults invokeAction(WORequest worequest, WOContext wocontext) {
      WOComponent component = wocontext.component();
      WOElement template = template(component);
      WOActionResults result;
      if(template != null) {
        wocontext._setCurrentComponent(component.parent());
        result = template.invokeAction(worequest, wocontext);
        wocontext._setCurrentComponent(component);
      } else {
        result = _defaultTemplate.invokeAction(worequest, wocontext);
      }
View Full Code Here

    @Override
    public void appendToResponse(WOResponse woresponse, WOContext wocontext) {
        WOComponent component = wocontext.component();
        WOElement template = template(component);
        if(template != null) {
          wocontext._setCurrentComponent(component.parent());
          template.appendToResponse(woresponse, wocontext);
          wocontext._setCurrentComponent(component);
        } else {
          _defaultTemplate.appendToResponse(woresponse, wocontext);
        }
View Full Code Here

    NSMutableArray<String> result = new NSMutableArray<String>();
    if (context != null) {
      WOComponent c = context.component();
      while (c != null) {
        result.addObject(c.name());
        c = c.parent();
      }
    }
    return result;
  }
View Full Code Here

   * Little bit better binding debug output than the original.
   */
  @Override
  public void logTakeValueForDeclarationNamed(String aDeclarationName, String aDeclarationType, String aBindingName, String anAssociationDescription, Object aValue) {
    WOComponent component = ERXWOContext.currentContext().component();
    if (component.parent() != null) {
      component = component.parent();
    }
    _debugValueForDeclarationNamed(component, " ==> ", aDeclarationName, aDeclarationType, aBindingName, anAssociationDescription, aValue);
  }

View Full Code Here

   */
  @Override
  public void logTakeValueForDeclarationNamed(String aDeclarationName, String aDeclarationType, String aBindingName, String anAssociationDescription, Object aValue) {
    WOComponent component = ERXWOContext.currentContext().component();
    if (component.parent() != null) {
      component = component.parent();
    }
    _debugValueForDeclarationNamed(component, " ==> ", aDeclarationName, aDeclarationType, aBindingName, anAssociationDescription, aValue);
  }

  /**
 
View Full Code Here

   * Little bit better binding debug output than the original.
   */
  @Override
  public void logSetValueForDeclarationNamed(String aDeclarationName, String aDeclarationType, String aBindingName, String anAssociationDescription, Object aValue) {
    WOComponent component = ERXWOContext.currentContext().component();
    if (component.parent() != null) {
      component = component.parent();
    }
    _debugValueForDeclarationNamed(component, " <== ", aDeclarationName, aDeclarationType, aBindingName, anAssociationDescription, aValue);
  }

View Full Code Here

   */
  @Override
  public void logSetValueForDeclarationNamed(String aDeclarationName, String aDeclarationType, String aBindingName, String anAssociationDescription, Object aValue) {
    WOComponent component = ERXWOContext.currentContext().component();
    if (component.parent() != null) {
      component = component.parent();
    }
    _debugValueForDeclarationNamed(component, " <== ", aDeclarationName, aDeclarationType, aBindingName, anAssociationDescription, aValue);
  }

  /**
 
View Full Code Here

      }
      else
      {
        componentStack.add("(" + next.getClass().getName() + ".java:0)");
      }
      next = next.parent();
    }
    System.err.println(componentStack.componentsJoinedByString(" -> ") + " : " + message);
  }

  public String javaScriptElementID()
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.