Package com.webobjects.appserver._private

Examples of com.webobjects.appserver._private.WOConstantValueAssociation


    _address = (WOAssociation) someAssociations.objectForKey("address");
    _lat = (WOAssociation) someAssociations.objectForKey("lat");
    _lng = (WOAssociation) someAssociations.objectForKey("lng");
   
    if( ((_lat == null )||( _lng == null )) && (_address == null)) {
      throw new WODynamicElementCreationException("Unable to create CCGoogleMap, missing coordinates or address");
    }
   
  }
View Full Code Here


    _fragmentIdentifier = _associations.removeObjectForKey(WOHTMLAttribute.FragmentIdentifier);
    _action = _associations.removeObjectForKey(WOHTMLAttribute.Action);
    _linkResource = _associations.removeObjectForKey("linkResource");

    if (_linkResource == null && _action == null) {
      throw new WODynamicElementCreationException("<" + getClass().getName() + "> Missing required attribute: 'linkResource' or 'action' ");
    }
  }
View Full Code Here

    boolean showButton = showUI && booleanValueForBinding("button", true, component);
    String formReference;
    if ((!showButton || functionName != null) && formName == null) {
      formName = ERXWOForm.formName(context, null);
      if (formName == null) {
        throw new WODynamicElementCreationException("If button = false or functionName is not null, the containing form must have an explicit name.");
      }
    }
    if (formName == null) {
      formReference = "this.form";
    }
View Full Code Here

    super("input", AjaxFunctionButton.processAssociations(associations), template);
    _disabled = _associations.removeObjectForKey("disabled");
    _action = _associations.removeObjectForKey("action");
    _updateContainerID = _associations.removeObjectForKey("updateContainerID");
    if (_associations.objectForKey("onclick") != null && _action != null) {
      throw new WODynamicElementCreationException("You cannot bind both 'action' and 'onclick' at the same time.");
    }
    if (_updateContainerID != null && _action == null) {
      throw new WODynamicElementCreationException("If you bind 'updateContainerID', you must also bind 'action'.");
    }
  }
View Full Code Here

  public AjaxHighlight(String name, NSDictionary associations, WOElement template) {
    super(name, associations, template);
    _associations = associations;
    _value = (WOAssociation) associations.valueForKey("value");
    if (_value == null) {
      throw new WODynamicElementCreationException("'value' is a required binding.");
    }
    _elementName = (WOAssociation) associations.valueForKey("elementName");
    _id = (WOAssociation) associations.valueForKey("id");
    // PROTOTYPE EFFECTS
    _effect = (WOAssociation) associations.valueForKey("effect");
View Full Code Here

    if (_elementNameAssociation == null) {
      _elementNameAssociation = new WOConstantValueAssociation("div");
    }
    _classAssociation = (WOAssociation) associations.objectForKey("class");
    if (_classAssociation == null) {
      throw new WODynamicElementCreationException("'class' is a required binding.");
    }
    _generateTagsAssociation = (WOAssociation) associations.objectForKey("generateTags");
    if (_generateTagsAssociation == null) {
      _generateTagsAssociation = new WOConstantValueAssociation(Boolean.FALSE);
    }
View Full Code Here

 
  public AjaxIncludeScript(String name, NSDictionary associations, WOElement children) {
    super(name, associations, children);
    _name = (WOAssociation)associations.objectForKey("name");
    if (_name == null) {
      throw new WODynamicElementCreationException("'name' is a required binding for AjaxIncludeScript.");
    }
    _framework = (WOAssociation)associations.objectForKey("framework");
  }
View Full Code Here

    String formReference;

    if((!showButton || functionName != null) && formName == null) {
      formName = ERXWOForm.formName(context, null);
      if(formName == null) {
        throw new WODynamicElementCreationException("If button = false or functionName is not null, the containing form must have an explicit name.");
      }
    }

    if(formName == null) {
      formReference = "this.form";
View Full Code Here

  public static void addEffect(NSMutableDictionary options, String effect, String updateContainerID, String effectProperty, String effectStart, String duration, String mode) {

    if(effect != null) {
     
      if(options.objectForKey("onSuccess") != null) {
        throw new WODynamicElementCreationException("You cannot specify both an effect and a custom onSuccess function.");
      }
      if(updateContainerID == null) {
        throw new WODynamicElementCreationException("You cannot specify an effect without an updateContainerID.");
      }
      StringBuilder effectBuffer = new StringBuilder();
      effectBuffer.append("function() { ");
      if(effect.equals("tween")) {
        if(duration != null) {
View Full Code Here

   
    @Override
    protected String url() {
      if (hasBinding(Bindings.action) || hasBinding(Bindings.directActionName))
        return "this.href";
      else throw new WODynamicElementCreationException("Action or directActionName is a required binding");
    }
View Full Code Here

TOP

Related Classes of com.webobjects.appserver._private.WOConstantValueAssociation

Copyright © 2018 www.massapicom. 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.