Examples of takeValueForKey()


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

        public WOComponent firstPage() {
            return runWithPageConfiguration((String)d2wContext().valueForKey("pageConfiguration"));
        }
        public WOComponent runWithPageConfiguration(String value) {
            WOComponent page = pageForConfigurationNamed(value);
            page.takeValueForKey(this, "nextPageDelegate");
            return page;
        }

        public WOComponent returnAction(WOComponent sender) {
            return returnPage();
View Full Code Here

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

        }
       
        @Override
        public WOComponent runWithPageConfiguration(String value) {
            WOComponent start = super.runWithPageConfiguration(value);
            start.takeValueForKey(object(), "object");
            return start;
        }

        public EOEnterpriseObject object() {
            if(object == null && pk != null) {
View Full Code Here

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

            EOEnterpriseObject eo;
            EOEditingContext ec = ERXEC.newEditingContext();
            //this.log.debug("runWithPageConfiguration: pc <" + value + "> - " + d2wContext().entity());
            eo = EOUtilities.createAndInsertInstance(ec, d2wContext().entity().name());
            setObject(eo);
            start.takeValueForKey(object(), "object");
            return start;
        }
    }
   
    public static class ERCQuery extends ERCCore { // implements firstPage()
View Full Code Here

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

        return result;
    }

    public QueryPageInterface queryPageWithFetchSpecificationForEntityNamed(String fsName, String entityName, WOSession s) {
        WOComponent result = pageForTaskSubTaskAndEntityNamed("query", "fetchSpecification", entityName, s);
        result.takeValueForKey(fsName, "fetchSpecificationName");
        return (QueryPageInterface) result;
    }

    public WOComponent errorPageForException(Throwable e, WOSession s) {
        myCheckRules();
View Full Code Here

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

    return (Integer)((NSDictionary)zones.valueForKey(timeZoneId)).valueForKey(OFF_KEY);
  }

  public WOComponent timeDisplayNow() {
    WOComponent nextPage = pageWithName("TimeDisplayNow");
    nextPage.takeValueForKey(timeZoneId, "timeZoneID");
    return nextPage;
  }
}
View Full Code Here

Examples of com.webobjects.appserver.WORequest.takeValueForKey()

    assertEquals(new NSTimestamp(1970, 1, 1, 12, 0, 0, pdt), req.dateFormValueForKey("str", new SimpleDateFormat("hh 'o''clock' a, zzzz")));

    req.takeValueForKey("0:08 PM, PDT", "str");
    assertEquals(new NSTimestamp(1970, 1, 1, 12, 8, 0, pdt), req.dateFormValueForKey("str", new SimpleDateFormat("K:mm a, z")));

    req.takeValueForKey("02001.July.04 AD 12:08 PM", "str");
    assertEquals(new NSTimestamp(2001, 7, 4, 12, 8, 0, TimeZone.getDefault()), req.dateFormValueForKey("str", new SimpleDateFormat("yyyyy.MMMMM.dd GGG hh:mm aaa")));

    req.takeValueForKey("Wed, 4 Jul 2001 12:08:56 -0700", "str");
    assertEquals(new NSTimestamp(2001, 7, 4, 12, 8, 56, pdt), req.dateFormValueForKey("str", new SimpleDateFormat("EEE, d MMM yyyy HH:mm:ss Z")));
View Full Code Here

Examples of com.webobjects.directtoweb.D2WContext.takeValueForKey()

    }

    public ERD2WController controllerForName(String controllerName, WOSession session) {
        myCheckRules();
        D2WContext newContext=ERD2WContext.newContext(session);
        newContext.takeValueForKey(controllerName, "controllerName");
        // give an InstanceCreationAssigment a chance
        ERD2WController c = controllerInstanceWithContext(newContext);

        return c;
    }
View Full Code Here

Examples of com.webobjects.directtoweb.D2WContext.takeValueForKey()

        newContext.setTask(task);
        EOEntity newEntity=entityName!=null ? EOModelGroup.defaultGroup().entityNamed(entityName) : null;
        if (newEntity!=null) newContext.setEntity(newEntity);
        String controllerName="__"+task+"__"+entityName;
        // saves 2 significant keys, task and entity!
        newContext.takeValueForKey(controllerName,"controllerName");

        ERD2WController c = controllerInstanceWithContext(newContext);

        return c;
    }
View Full Code Here

Examples of com.webobjects.directtoweb.D2WContext.takeValueForKey()

    public WOComponent printerFriendlyPageForD2WContext(D2WContext context, WOSession session) {
        myCheckRules();
        D2WContext newContext = ERD2WContext.newContext(session);
        String newTask = context.task().equals("edit") ? "inspect" : context.task();
        newContext.takeValueForKey(newTask, "task");
        // not using subTask directly here because the cache mechanism relies on
        // being able to compute wether this key
        // is 'computable' (subTask is since a rule can fire to give a default)
        // or an external output
        //        newContext.takeValueForKey("printerFriendly","subTask");
View Full Code Here

Examples of com.webobjects.directtoweb.D2WContext.takeValueForKey()

        // not using subTask directly here because the cache mechanism relies on
        // being able to compute wether this key
        // is 'computable' (subTask is since a rule can fire to give a default)
        // or an external output
        //        newContext.takeValueForKey("printerFriendly","subTask");
        newContext.takeValueForKey("printerFriendly", "forcedSubTask");
        newContext.takeValueForKey(context.valueForKey("pageName"), "existingPageName");
        newContext.takeValueForKey(context.valueForKey("subTask"), "existingSubTask");
        newContext.takeValueForKey(context.valueForKey("pageConfiguration"), "pageConfiguration");
        newContext.takeValueForKey(context.entity(), "entity");
        WOComponent result = WOApplication.application().pageWithName((String) newContext.valueForKey("pageName"), session.context());
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.