Package com.webobjects.appserver

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


        }catch(WOPageNotFoundException exc){
            //Do nothing here since it is not mandatory to have a plain text version component
        }
        if(plainTextComponent!=null){
            EOKeyValueCodingAdditions.DefaultImplementation.takeValuesFromDictionary(plainTextComponent, bindings);
            WOContext context = plainTextComponent.context();
            context.generateCompleteURLs();
            result.setPlainText(plainTextComponent.generateResponse().contentString());
        }
        return result;
    }
View Full Code Here


    if (page == null) {
      page = super.restorePageForContextID(contextID);
    }

    if (page != null) {
      WOContext context = page.context();
      if(context == null) {
          page._awakeInContext(context());
          context = page.context();
      }
      WORequest request = context.request();
View Full Code Here

    if (page != null) {
      WOContext context = page.context();
      if(context == null) {
          page._awakeInContext(context());
          context = page.context();
      }
      WORequest request = context.request();
      // MS: I suspect we don't have to do this all the time, but I don't know if we have
      // enough information at this point to know whether to do it or not, unfortunately.
      if (request != null) {
View Full Code Here

        WOActionResults anActionResults = anApplication.invokeAction(aRequest, aContext);

        if ((anActionResults == null) || ((anActionResults instanceof WOComponent)))
        {
          WOComponent aResultComponent = (WOComponent)anActionResults;
          if ((aResultComponent != null) && (aResultComponent.context() != aContext)) {
            aResultComponent._awakeInContext(aContext);
          }
          boolean didPageChange = false;
          if ((aResultComponent != null) && (aResultComponent != aContext._pageElement())) {
            didPageChange = true;
View Full Code Here

     * @param results */
    public static void createRedirector(WOActionResults results) {
        ERXThreadStorage.removeValueForKey("redirector");
        if(results instanceof WOComponent) {
            WOComponent component = (WOComponent)results;
            WOContext context = component.context();
            if(context.request().requestHandlerKey().equals("wo")) {
                if(component instanceof Restorable) {
                    ERXComponentActionRedirector r = new ERXComponentActionRedirector((Restorable)component);
                    ERXComponentActionRedirector.storeRedirector(r);
                } else {
View Full Code Here

    /** contructs the redirector from the Restorable.
     * @param r - Restorable component used to construct a redirector */
    public ERXComponentActionRedirector(Restorable r) {
        WOComponent component = (WOComponent)r;
        WOContext context = component.context();
        sessionID = component.session().sessionID();
        url = r.urlForCurrentState();
        if(context.session().storesIDsInURLs()) {
          String argsChar = url.indexOf("?") >= 0? "&" : "?";
          String sessionIdKey = WOApplication.application().sessionIdKey();
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.