Examples of WOConstantValueAssociation


Examples of com.webobjects.appserver._private.WOConstantValueAssociation

    }
   
    public ERXSubmitButton(String arg0, NSDictionary<String, WOAssociation> nsdictionary, WOElement arg2) {
        super("button", nsdictionary, arg2);
        if(_value == null)
            _value = new WOConstantValueAssociation("Submit");
        _shouldSubmitForm = _associations.removeObjectForKey("shouldSubmitForm");
        _action = _associations.removeObjectForKey("action");
        _actionClass = _associations.removeObjectForKey("actionClass");
        _directActionName = _associations.removeObjectForKey("directActionName");
        _class = (WOAssociation) nsdictionary.valueForKey("class");
View Full Code Here

Examples of com.webobjects.appserver._private.WOConstantValueAssociation

  private boolean _treatNullAsEmptyString;

  public ERXProxyAssociation(WOAssociation proxiedAssociation, String prefix, String suffix, boolean treatNullAsEmptyString) {
    _proxiedAssociation = proxiedAssociation;
    if (_proxiedAssociation == null) {
      _proxiedAssociation = new WOConstantValueAssociation(null);
    }
    _prefix = prefix;
    _suffix = suffix;
    _treatNullAsEmptyString = treatNullAsEmptyString;
  }
View Full Code Here

Examples of com.webobjects.appserver._private.WOConstantValueAssociation

    }
    _action = _associations.removeObjectForKey("action");
    _href = _associations.removeObjectForKey("href");
    _multipleSubmit = _associations.removeObjectForKey("multipleSubmit");
    if (_multipleSubmit == null && ERXWOForm.multipleSubmitDefault) {
      _multipleSubmit = new WOConstantValueAssociation(Boolean.valueOf(multipleSubmitDefault));
    }
    _actionClass = _associations.removeObjectForKey("actionClass");
    _queryDictionary = _associations.removeObjectForKey("queryDictionary");
    _directActionName = _associations.removeObjectForKey("directActionName");
    _formName = _associations.removeObjectForKey("name");
    if (ERXWOForm.useIdInsteadOfNameTag && _id != null) {
      _formName = _id;  // id takes precedence over name - then subsequently written as id
      _id = null;
    }
    _enctype = _associations.removeObjectForKey("enctype");
    _fragmentIdentifier = _associations.removeObjectForKey("fragmentIdentifier");
    _disabled = _associations.removeObjectForKey("disabled");
    _addDefaultSubmitButton = _associations.removeObjectForKey("addDefaultSubmitButton");
    _embedded = _associations.removeObjectForKey("embedded");
    if (_associations.objectForKey("method") == null && _associations.objectForKey("Method") == null && _associations.objectForKey("METHOD") == null) {
      _associations.setObjectForKey(new WOConstantValueAssociation("post"), "method");
    }
    if (_action != null && _href != null || _action != null && _directActionName != null || _href != null && _directActionName != null || _action != null && _actionClass != null || _href != null && _actionClass != null) {
      throw new WODynamicElementCreationException("<" + getClass().getName() + ">: At least two of these conflicting attributes are present: 'action', 'href', 'directActionName', 'actionClass'");
    }
    if (_action != null && _action.isValueConstant()) {
View Full Code Here

Examples of com.webobjects.appserver._private.WOConstantValueAssociation

      String name = (String) e.nextElement();
      WOAssociation association = (WOAssociation) associations.objectForKey(name);
      boolean isConstant = false;
      String keyPath = null;
      if (association instanceof WOConstantValueAssociation) {
        WOConstantValueAssociation constantAssociation = (WOConstantValueAssociation) association;
        // AK: this sucks, but there is no API to get at the value
        Object value = constantAssociation.valueInComponent(null);
        keyPath = value != null ? value.toString() : null;
        isConstant = true;
      }
      else if (association instanceof WOKeyValueAssociation) {
        keyPath = association.keyPath();
View Full Code Here

Examples of com.webobjects.appserver._private.WOConstantValueAssociation

  public WODeclaration createDeclaration(String elementName, String elementType, NSMutableDictionary associations) {
    String newElementType = "ERXWOConditional";
    if (associations.objectForKey("negate") != null) {
      throw new IllegalArgumentException("You already specified a binding for 'negate' of " + associations.objectForKey("negate") + " on a wo:not.");
    }
    associations.setObjectForKey(new WOConstantValueAssociation(Boolean.TRUE), "negate");
    return super.createDeclaration(elementName, newElementType, associations);
  }
View Full Code Here

Examples of com.webobjects.appserver._private.WOConstantValueAssociation

    super(name, associations, template);

        _accesskey = _associations.removeObjectForKey("accesskey");
        _accesskeyElement = _associations.removeObjectForKey("accesskeyElement");
        if(_accesskeyElement == null) {
          _accesskeyElement = new WOConstantValueAssociation("u");
        }
  }
View Full Code Here

Examples of com.webobjects.appserver._private.WOConstantValueAssociation

    }
  }

  protected static NSDictionary processAssociations(NSDictionary associations) {
    NSMutableDictionary mutableAssociations = (NSMutableDictionary) associations;
    mutableAssociations.setObjectForKey(new WOConstantValueAssociation("javascript:void(0)"), "href");
    return mutableAssociations;
  }
View Full Code Here

Examples of com.webobjects.appserver._private.WOConstantValueAssociation

    WOAssociation action = (WOAssociation) mutableAssociations.removeObjectForKey("action");
    if (action != null) {
      mutableAssociations.setObjectForKey(action, "invokeAction");
    }
    if (!mutableAssociations.containsKey("elementName")) {
      mutableAssociations.setObjectForKey(new WOConstantValueAssociation("div"), "elementName");
    }
    if (!mutableAssociations.containsKey("style")) {
      mutableAssociations.setObjectForKey(new WOConstantValueAssociation("cursor: pointer;"), "style");
    }
    return mutableAssociations;
  }
View Full Code Here

Examples of com.webobjects.appserver._private.WOConstantValueAssociation

        }
        ognlKeyPath.append(')');
        if (log.isDebugEnabled()) {
          log.debug("Converted " + originalKeyPath + " into " + ognlKeyPath);
        }
        association = new WOConstantValueAssociation(ognlKeyPath.toString());
      }
    }
    return association;
  }
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.