Examples of takeValueForKeyPath()


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

    }

    public WOComponent selectionClicked() {
        // May have to do explicit update here!
        WOComponent aPage = callbackPage;
        aPage.takeValueForKeyPath(aPath, callbackKeypath);

        if (callbackExpand != null) {
            aPage.takeValueForKey(Boolean.TRUE, callbackExpand);
        }
        return aPage;
View Full Code Here

Examples of com.webobjects.directtoweb.D2WPage.takeValueForKeyPath()

    }
    if (useAjaxWhenEmbedded) {
      if (parent() != null) {
        D2WPage parent = (D2WPage)ERD2WUtilities.enclosingPageOfClass(this, D2WPage.class);
        if (parent != null)
          parent.takeValueForKeyPath(null, "d2wContext.inlineTask");
      }
    }
    return result;
  }
View Full Code Here

Examples of com.webobjects.directtoweb.D2WPage.takeValueForKeyPath()

    boolean useAjaxWhenEmbedded = ERXValueUtilities.booleanValue(d2wContext().valueForKey(Keys.useAjaxControlsWhenEmbedded));
    if (useAjaxWhenEmbedded) {
      if (parent() != null) {
        D2WPage parent = (D2WPage)ERD2WUtilities.enclosingPageOfClass(this, D2WPage.class);
        if (parent != null)
          parent.takeValueForKeyPath(null, "d2wContext.inlineTask");
      }
    }
    return page;
  }
 
View Full Code Here

Examples of com.webobjects.eocontrol.EOEnterpriseObject.takeValueForKeyPath()

                    throw new IllegalStateException("You must specify a confirmMessageKey for this pageConfiguration!");
                if (log.isDebugEnabled())
                    log.debug("Setting message: " + message + " for key: " + confirmMessageKey() + " on eos: " + list());
                for (Enumeration e = list().objectEnumerator(); e.hasMoreElements();) {
                    EOEnterpriseObject eo = (EOEnterpriseObject)e.nextElement();
                    eo.takeValueForKeyPath(message, confirmMessageKey());
                }
            }
        } else {
            log.warn("List is zero.  If used in a confirm page template, need to set the object or datasource");
        }
View Full Code Here

Examples of com.webobjects.foundation.NSMutableDictionary.takeValueForKeyPath()

            // AK: this occurs mostly when we want to load a rule that contains an assigment class which can't be found
            //HACK cheesy way to get at the encoded rule dictionary
            NSMutableDictionary dict = (NSMutableDictionary)NSKeyValueCoding.Utility.valueForKey(eokeyvalueunarchiver,"propertyList");
            String ruleString = dict.toString();
            // now store the old assignment class
            dict.takeValueForKeyPath(dict.valueForKeyPath("rhs.class"), "assignmentClassName");
            // and push in the default class
            dict.takeValueForKeyPath(Assignment.class.getName(), "rhs.class");
            // try again
            try {
                rule = new ERD2WRule(eokeyvalueunarchiver);
View Full Code Here

Examples of com.webobjects.foundation.NSMutableDictionary.takeValueForKeyPath()

            NSMutableDictionary dict = (NSMutableDictionary)NSKeyValueCoding.Utility.valueForKey(eokeyvalueunarchiver,"propertyList");
            String ruleString = dict.toString();
            // now store the old assignment class
            dict.takeValueForKeyPath(dict.valueForKeyPath("rhs.class"), "assignmentClassName");
            // and push in the default class
            dict.takeValueForKeyPath(Assignment.class.getName(), "rhs.class");
            // try again
            try {
                rule = new ERD2WRule(eokeyvalueunarchiver);
                ruleString = rule.toString();
               
View Full Code Here

Examples of com.webobjects.foundation.NSMutableDictionary.takeValueForKeyPath()

        try {
            rule = new ERD2WExtendedRule(eokeyvalueunarchiver);
        } catch(Throwable t) {
            NSMutableDictionary dict = (NSMutableDictionary)NSKeyValueCoding.Utility.valueForKey(eokeyvalueunarchiver,"propertyList");
            log.info("Problems with this rule: " + dict + "," + t.getMessage());
            dict.takeValueForKeyPath(dict.valueForKeyPath("rhs.class"), "assignmentClassName");
            dict.takeValueForKeyPath("com.webobjects.directtoweb.Assignment", "rhs.class");
            rule = new ERD2WExtendedRule(eokeyvalueunarchiver);
        }
        return rule;
    }
View Full Code Here

Examples of com.webobjects.foundation.NSMutableDictionary.takeValueForKeyPath()

            rule = new ERD2WExtendedRule(eokeyvalueunarchiver);
        } catch(Throwable t) {
            NSMutableDictionary dict = (NSMutableDictionary)NSKeyValueCoding.Utility.valueForKey(eokeyvalueunarchiver,"propertyList");
            log.info("Problems with this rule: " + dict + "," + t.getMessage());
            dict.takeValueForKeyPath(dict.valueForKeyPath("rhs.class"), "assignmentClassName");
            dict.takeValueForKeyPath("com.webobjects.directtoweb.Assignment", "rhs.class");
            rule = new ERD2WExtendedRule(eokeyvalueunarchiver);
        }
        return rule;
    }
    public void encodeWithKeyValueArchiver (EOKeyValueArchiver eokeyvaluearchiver) {
View Full Code Here

Examples of er.rest.ERXRestRequestNode.takeValueForKeyPath()

*/
public class ERXFormRestParser implements IERXRestParser {
  public ERXRestRequestNode parseRestRequest(IERXRestRequest request, Delegate delegate, ERXRestContext context) {
    ERXRestRequestNode rootNode = new ERXRestRequestNode();
    for (String keyPath : request.keyNames()) {
      rootNode.takeValueForKeyPath(request.objectForKey(keyPath), keyPath);
    }
    return rootNode;
  }

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