Package com.webobjects.appserver

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


    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

      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

        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

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.