Examples of keyPath()


Examples of com.webobjects.appserver.WOAssociation.keyPath()

    public void validationFailedWithException(Throwable t, Object value, String keyPath) {
      if (keyPath != null && "<none>".equals(keyPath) && t instanceof ValidationException) {
        ValidationException e = (ValidationException) t;
        WOAssociation valueAssociation = (WOAssociation) _keyAssociations.valueForKey("value");
        if (valueAssociation != null) {
          keyPath = valueAssociation.keyPath();
        }
        t = new ValidationException(e.getMessage(), e.object(), keyPath);
      }
      parent().validationFailedWithException(t, value, keyPath);
    }
View Full Code Here

Examples of com.webobjects.appserver.WOAssociation.keyPath()

    public void validationFailedWithException(Throwable t, Object value, String keyPath) {
      if (keyPath != null && "<none>".equals(keyPath) && t instanceof ValidationException) {
        ValidationException e = (ValidationException) t;
        WOAssociation valueAssociation = (WOAssociation) _keyAssociations.valueForKey("value");
        if (valueAssociation != null) {
          keyPath = valueAssociation.keyPath();
        }
        t = new ValidationException(e.getMessage(), e.object(), keyPath);
      }
      parent().validationFailedWithException(t, value, keyPath);
    }
View Full Code Here

Examples of com.webobjects.appserver.WOAssociation.keyPath()

      if(css == null) {
        css = "";
      }
      WOAssociation assoc = _associationWithName("action");
      if(assoc != null) {
        css += " " + ERXSubmitButton.STYLE_PREFIX + assoc.keyPath().replaceAll("\\W+", "");
      } else {
        css += " " + ERXSubmitButton.STYLE_PREFIX + valueForBinding("directActionName");
      }
      if(css.length() == 0) {
        css = null;
View Full Code Here

Examples of com.webobjects.appserver.WOAssociation.keyPath()

        Object value = constantAssociation.valueInComponent(null);
        keyPath = value != null ? value.toString() : null;
        isConstant = true;
      }
      else if (association instanceof WOKeyValueAssociation) {
        keyPath = association.keyPath();
      }
      else if (association instanceof WOBindingNameAssociation) {
        WOBindingNameAssociation b = (WOBindingNameAssociation) association;
        // AK: strictly speaking, this is not correct, as we only get the first part of
        // the path. But take a look at WOBindingNameAssociation for a bit of fun...
View Full Code Here

Examples of com.webobjects.appserver._private.WOKeyValueAssociation.keyPath()

     * </p>
     */
    protected void loadBindingsFromSelection() {
      WOKeyValueAssociation selectionAssociation = (WOKeyValueAssociation)_associationWithName("selection");
      if (selectionAssociation != null) {
        String selectionKeyPath = selectionAssociation.keyPath();
        WOComponent parent = parent();
        int lastDotIndex = selectionKeyPath.lastIndexOf('.');
        if (lastDotIndex == -1) {
          _sourceObject = parent;
          _relationshipKey = selectionKeyPath;
View Full Code Here

Examples of com.webobjects.appserver._private.WOKeyValueAssociation.keyPath()

  protected WOAssociation parserHelperAssociation(WOAssociation originalAssociation) {
    WOAssociation association = originalAssociation;
    String originalKeyPath = null;
    if (association instanceof WOKeyValueAssociation) {
      WOKeyValueAssociation kvAssociation = (WOKeyValueAssociation) association;
      originalKeyPath = kvAssociation.keyPath();
    }
    // else if (association instanceof WOConstantValueAssociation) {
    // WOConstantValueAssociation constantAssociation =
    // (WOConstantValueAssociation) association;
    // Object constantValue = constantAssociation.valueInComponent(null);
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.