Package com.webobjects.appserver._private

Examples of com.webobjects.appserver._private.WODynamicElementCreationException


            NSLog.err.setIsVerbose(true);
            NSLog.allowDebugLoggingForGroups(NSLog.DebugGroupDeployment);
            NSLog.debug.setAllowedDebugLevel(NSLog.DebugLevelDetailed);
        }
        WOTaskdHandler.createSiteConfig();
        registerRequestHandler(new WODirectActionRequestHandler() {
            @Override
            public NSArray getRequestHandlerPathForRequest(WORequest worequest) {
                NSArray nsarray = new NSArray(AdminAction.class.getName());
                return nsarray.arrayByAddingObject(worequest.requestHandlerPath());
            }
View Full Code Here


    super("a", AjaxToggleLink.processAssociations(associations), template);
    _effect = _associations.removeObjectForKey("effect");
    _duration = _associations.removeObjectForKey("duration");
    _toggleID = _associations.removeObjectForKey("toggleID");
    if (_associations.objectForKey("onclick") != null) {
      throw new WODynamicElementCreationException("You cannot bind 'onclick' on AjaxToggleLink.");
    }
    if (_toggleID == null) {
      throw new WODynamicElementCreationException("You must bind 'toggleID'.");
    }
  }
View Full Code Here

    @Override
  protected void pullAssociations(NSDictionary<String, ? extends WOAssociation> dict) {
      _value1 = dict.objectForKey("value1");
      _value2 = dict.objectForKey("value2");
      if(_value1 == null || _value2 == null) {
        throw new WODynamicElementCreationException("value1 and value2 must both be bound");
      }
    }
View Full Code Here

    _dateFormat = (WOAssociation) associations.objectForKey("dateformat");
    _numberFormat = (WOAssociation) associations.objectForKey("numberformat");
    _useDecimalNumber = (WOAssociation) associations.objectForKey("useDecimalNumber");
    _escapeHTML = (WOAssociation) associations.objectForKey("escapeHTML");
    if (_dateFormat != null && _numberFormat != null) {
      throw new WODynamicElementCreationException("<" + getClass().getName() + "> Cannot have 'dateFormat' and 'numberFormat' attributes at the same time.");
    }
  }
View Full Code Here

  @Override
  protected String url() {
      if (hasBinding(Bindings.action)) {
        return "'" + ERXWOContext.ajaxActionUrl(context()) + "'";
      } else throw new WODynamicElementCreationException("Action is a required binding");
  }
View Full Code Here

    public WOActionResults invokeAction() {
    if (hasBinding(Bindings.action)) {
      WOActionResults action = (WOActionResults) valueForBinding(Bindings.action);
      if (action instanceof WOComponent)  ((WOComponent) action)._setIsPage(true)// cache is pageFrag cache
      return action;
    } else throw new WODynamicElementCreationException("Action is not bound");
    }
View Full Code Here

  protected void pullAssociations(NSDictionary<String, ? extends WOAssociation> nsdictionary) {

    _condition =nsdictionary.objectForKey("condition");

    if (_condition == null && getClass() == ERXWOConditional.class) {
      throw new WODynamicElementCreationException("<" + getClass().getName() + "> Missing 'condition' attribute in initialization.");
    }

  }
View Full Code Here

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

  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

TOP

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

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.