Package com.webobjects.appserver

Examples of com.webobjects.appserver.WOComponent


        }
        return nextPage;
    }

    public WOComponent logout() {
        WOComponent redirectPage = pageWithName("WORedirect");
        ((WORedirect) redirectPage).setUrl(D2W.factory().homeHrefInContext(context()));
        session().terminate();
        return redirectPage;
    }
View Full Code Here


  }
  public WOComponent confirmAction() {
    return errorMessages.count() == 0 ? nextPageAction() : null;
  }
  public WOComponent nextPageAction() {
        WOComponent result = nextPageFromDelegate();
      if(result == null) {
        result = nextPage();
      }
        return result;
  }
View Full Code Here

  public boolean showBackButton() {
    return !( context().page().name().equals( Main.class.getName() ) );
  }

  public WOActionResults returnAction() {
    WOComponent backPage = (WOComponent)this.objectValueForBinding("backPage");
    if (backPage == null) {
      backPage = pageWithName(Main.class.getName());
    }
    return backPage;
  }
View Full Code Here

  AjaxUpdateContainer.expandInsertionFromOptions(options, element, component);
  }

  @Override
  public void appendToResponse(WOResponse response, WOContext context) {
    WOComponent component = context.component();

    String functionName = (String)valueForBinding("functionName", null, component);
    String formName = (String)valueForBinding("formName", component);
    boolean showUI = (functionName == null || booleanValueForBinding("showUI", false, component));
    boolean showButton = showUI && booleanValueForBinding("button", true, component);
View Full Code Here

  }

  @Override
  public WOActionResults invokeAction(WORequest worequest, WOContext wocontext) {
    WOActionResults result = null;
    WOComponent wocomponent = wocontext.component();

    String nameInContext = nameInContext(wocontext, wocomponent);
    boolean shouldHandleRequest = (!disabledInComponent(wocomponent) && wocontext.wasFormSubmitted()) && ((wocontext.isMultipleSubmitForm() && nameInContext.equals(worequest.formValueForKey(KEY_AJAX_SUBMIT_BUTTON_NAME))) || !wocontext.isMultipleSubmitForm());
    if (shouldHandleRequest) {
      String updateContainerID = AjaxUpdateContainer.updateContainerID(this, wocomponent);
View Full Code Here

    return result;
  }

  @Override
  public WOActionResults handleRequest(WORequest request, WOContext context) {
     WOComponent component = context.component();
     WOActionResults result = (WOActionResults) valueForBinding("action", component);

     if (ERXAjaxApplication.isAjaxReplacement(request)) {
       AjaxUtils.setPageReplacementCacheKey(context, (String)valueForBinding("replaceID", component));
     }
View Full Code Here

    public WOComponent nextPage() { return nextPage(true); }

    public WOComponent nextPage(boolean doConfirm) {
        Object inspectConfirmConfigurationName = d2wContext().valueForKey("inspectConfirmConfigurationName");
        if(doConfirm && inspectConfirmConfigurationName != null && ! "".equals(inspectConfirmConfigurationName)) {
            WOComponent ipi = D2W.factory().pageForConfigurationNamed((String)inspectConfirmConfigurationName, session());
            if (ipi instanceof InspectPageInterface) {
                ((InspectPageInterface)ipi).setObject((EOEnterpriseObject)d2wContext().valueForKey("object"));
                ((InspectPageInterface)ipi).setNextPageDelegate(nextPageDelegate());
                ((InspectPageInterface)ipi).setNextPage(super.nextPage());
            }
            if (ipi instanceof ERDFollowPageInterface)
                ((ERDFollowPageInterface)ipi).setPreviousPage(context().page());
            return ipi;
        }
        WOComponent result = nextPageFromDelegate();
      if(result == null) {
        result = super.nextPage();
      }
        return result;
    }
View Full Code Here

      }
        return result;
    }
   
    public WOComponent editAction() {
        WOComponent returnPage = null;
        if (previousPage() == null) {
            String editConfigurationName = (String)d2wContext().valueForKey("editConfigurationName");
            EditPageInterface editPage;
            if(editConfigurationName != null && editConfigurationName.length() > 0) {
                editPage = (EditPageInterface)D2W.factory().pageForConfigurationNamed(editConfigurationName,session());
View Full Code Here

      }
      return saved;
    }
   
    public WOComponent submitAction() throws Throwable {
        WOComponent returnComponent = null;
        // catch the case where the user hits cancel and then the back button
        if (object()!=null && object().editingContext()==null) {
            setErrorMessage(ERXLocalizer.currentLocalizer().localizedTemplateStringForKeyWithObject("ERD2WInspect.alreadyAborted", d2wContext()));
            clearValidationFailed();
        } else {
View Full Code Here

        object().editingContext().parentObjectStore() instanceof EOObjectStoreCoordinator ? "SaveMetalBtn.gif" : "OKMetalBtn.gif" :
        "SaveMetalBtn.gif";
    }

    public WOComponent printerFriendlyVersion() {
        WOComponent result=ERD2WFactory.erFactory().printerFriendlyPageForD2WContext(d2wContext(),session());
        ((EditPageInterface)result).setObject(object());
        return result;
    }
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.