Package com.webobjects.appserver._private

Examples of com.webobjects.appserver._private.WODeclaration


  //********************************************************************

  public ERXWOInput(String tagname, NSDictionary<String, WOAssociation> nsdictionary, WOElement woelement) {
    super(tagname, nsdictionary, woelement);
    if(_value == null || !_value.isValueSettable())
      throw new WODynamicElementCreationException("<" + getClass().getName() + "> 'value' attribute not present or is a constant");

    _readonly = _associations.removeObjectForKey("readonly");
    _required = _associations.removeObjectForKey("required");

    _blankIsNull = _associations.removeObjectForKey("blankIsNull");
View Full Code Here


  public ERXJSSubmitFunction(String elementName, NSDictionary associations, WOElement woelement) {
    super(elementName, associations, null);
    _action = (WOAssociation) associations.objectForKey("action");
    _formName = (WOAssociation) associations.objectForKey("formName");
    if (_formName == null) {
      throw new WODynamicElementCreationException("<" + getClass().getName() + "> 'formName' must be set.");
    }
    _functionName = (WOAssociation) associations.objectForKey("functionName");
    if (_functionName == null) {
      throw new WODynamicElementCreationException("<" + getClass().getName() + "> 'functionName' must be set.");
    }
    if (_action != null && _action.isValueConstant()) {
      throw new WODynamicElementCreationException("<" + getClass().getName() + "> 'action' is a constant.");
    }
    _name = (WOAssociation) associations.objectForKey("name");
    _disabled = (WOAssociation) associations.objectForKey("disabled");
  }
View Full Code Here

    _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

TOP

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

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.