Package com.webobjects.appserver

Examples of com.webobjects.appserver.WOComponent


  }
 
  @Override
  public WOActionResults invokeAction(WORequest request, WOContext context) {
    WOActionResults result = null;
    WOComponent wocomponent = context.component();
    String nameInContext = nameInContext(context, wocomponent, this);
    boolean shouldHandleRequest = !context.wasActionInvoked() && context.wasFormSubmitted() && nameInContext.equals(ERXAjaxApplication.ajaxSubmitButtonName(request));
    if (shouldHandleRequest) {
      String updateContainerID = MTAjaxUpdateContainer.updateContainerID(this, wocomponent);
      AjaxUpdateContainer.setUpdateContainerID(request, updateContainerID);
View Full Code Here


    protected EOEditingContext editingContext;
    protected boolean didSearchEditingContext;
   
    public EOEditingContext editingContext() {
      if(editingContext == null && !didSearchEditingContext) {
        WOComponent parent = parent();
        while(parent != null && editingContext == null) {
          if(parent instanceof ERD2WPage) {
            editingContext = ((ERD2WPage)parent).editingContext();
          }
          parent = parent.parent();
        }
        didSearchEditingContext = true;
      }
      return editingContext;
    }
View Full Code Here

      }
      return editingContext;
    }

    protected WOComponent showEditingContext(EOEditingContext ec) {
        WOComponent nextPage = pageWithName("ERXEditingContextInspector");
        nextPage.takeValueForKey(ec, "object");
        nextPage.takeValueForKey(this, "debugPageProvider");
        return nextPage;
    }
View Full Code Here

     * result.
     * @param sender template invoking the branch delegate
     * @return result of dynamic method lookup and execution on itself.
     */
    public final WOComponent nextPage(WOComponent sender) {
        WOComponent nextPage = null;
        if (sender instanceof ERDBranchInterface) {
            String branchName = ((ERDBranchInterface)sender).branchName();
            if( branchName != null ) {
                if (log.isDebugEnabled())
                    log.debug("Branching to branch: " + branchName);
View Full Code Here

        nextPage.takeValueForKey(ec, "object");
        nextPage.takeValueForKey(this, "debugPageProvider");
        return nextPage;
    }
    public WOComponent debugPageForObject(EOEnterpriseObject o, WOSession s) {
        WOComponent page = (WOComponent)D2W.factory().inspectPageForEntityNamed(o.entityName(),s);
        page.takeValueForKey(o, "object");
        return page;
    }
View Full Code Here

    public void setTabNumber(Integer newTabNumber){ _tabNumber  = newTabNumber;}

    @Override
    public WOComponent printerFriendlyVersion() {
        WOComponent result=ERD2WFactory.erFactory().printerFriendlyPageForD2WContext(d2wContext(),session());
        ((EditPageInterface)result).setObject(object());
        return result;
    }
View Full Code Here

    public String queryConfigurationName() { return (String)d2wContext().valueForKey("queryConfigurationName"); }
    public String listConfigurationName() { return (String)d2wContext().valueForKey("listConfigurationName"); }
   
    public WOComponent queryAction() {
        WOComponent result = null;
        if(entity() != null) {
            // construct datasource
          EOEditingContext ec = ERXEC.newEditingContext(session().defaultEditingContext().parentObjectStore());
            queryDataSource = new EODatabaseDataSource(ec, entity().name());
            queryDataSource.setAuxiliaryQualifier(displayGroup().qualifierFromQueryValues());
View Full Code Here

        if (selections.count() == 0 && selectionManditory()) {
            errorMessage = choiceErrorMessage() != null ? choiceErrorMessage() : "Please make a selection before continuing";
        } else {
            errorMessage = "";
        }
        WOComponent result = null;
        if (errorMessage.equals("")) {
            result = nextPageFromDelegate();
            if (result == null) {
                result = super.nextPage();
            }
View Full Code Here

  }

  /** Action method to select an object. */
  public WOComponent selectObjectAction() {
    setSelectedObject(object());
    WOComponent result = nextPageFromDelegate();
    return result;
  }
View Full Code Here

    WOComponent result = nextPageFromDelegate();
    return result;
  }

  public WOComponent backAction() {
    WOComponent result = nextPageFromDelegate();
    if (result == null) {
      result = nextPage();
      if (result == null) {
        result = (WOComponent) D2W.factory().queryPageForEntityNamed(entity().name(), session());
      }
View Full Code Here

TOP

Related Classes of com.webobjects.appserver.WOComponent

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.