Package com.webobjects.appserver

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


        }
       
        @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

            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

        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

    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

      return editingContext;
    }

    protected WOComponent showEditingContext(EOEditingContext ec) {
        WOComponent nextPage = pageWithName("ERXEditingContextInspector");
        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);
View Full Code Here

    }

    protected WOComponent showEditingContext(EOEditingContext ec) {
        WOComponent nextPage = pageWithName("ERXEditingContextInspector");
        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");
View Full Code Here

        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;
    }
   
    public WOComponent showEditingContext() {
        return showEditingContext(editingContext());
View Full Code Here

   
    public WOComponent editList() {
        if (parent() instanceof ERXExceptionHolder)
            ((ERXExceptionHolder)parent()).clearValidationFailed();
        WOComponent result = pageWithName(choicePageName());
        result.takeValueForKey(object(), "object");
        result.takeValueForKey(key(), "key");
        result.takeValueForKey(choices(), "choices");
        result.takeValueForKey(numberOfColumns(), "numberOfColumns");
        result.takeValueForKey(choiceDisplayKey(), "choiceDisplayKey");
        result.takeValueForKey(context().page(), "nextPage");
View Full Code Here

    public WOComponent editList() {
        if (parent() instanceof ERXExceptionHolder)
            ((ERXExceptionHolder)parent()).clearValidationFailed();
        WOComponent result = pageWithName(choicePageName());
        result.takeValueForKey(object(), "object");
        result.takeValueForKey(key(), "key");
        result.takeValueForKey(choices(), "choices");
        result.takeValueForKey(numberOfColumns(), "numberOfColumns");
        result.takeValueForKey(choiceDisplayKey(), "choiceDisplayKey");
        result.takeValueForKey(context().page(), "nextPage");
        result.takeValueForKey(_nextPageDelegate, "nextPageDelegate");
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.