Examples of WODynamicElementCreationException


Examples of com.webobjects.appserver._private.WODynamicElementCreationException

    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

Examples of com.webobjects.appserver._private.WODynamicElementCreationException

    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

Examples of com.webobjects.appserver._private.WODynamicElementCreationException

  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

Examples of com.webobjects.appserver._private.WODynamicElementCreationException

    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

Examples of com.webobjects.appserver._private.WODynamicElementCreationException

 
  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

Examples of com.webobjects.appserver._private.WODynamicElementCreationException

    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

Examples of com.webobjects.appserver._private.WODynamicElementCreationException

  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

Examples of com.webobjects.appserver._private.WODynamicElementCreationException

   
    @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

Examples of com.webobjects.appserver._private.WODynamicElementCreationException

  // accessors
  @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

Examples of com.webobjects.appserver._private.WODynamicElementCreationException

    _associations = associations.mutableClone();
    _attachment = _associations.removeObjectForKey("attachment");
    _download = _associations.removeObjectForKey("download");
    _target = _associations.removeObjectForKey("target");
    if (_attachment == null) {
      throw new WODynamicElementCreationException("<ERAttachmentLink> The 'attachment' binding is required.");
    }
    _configurationName = _associations.removeObjectForKey("configurationName");
  }
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.