Package com.webobjects.appserver._private

Examples of com.webobjects.appserver._private.WODeclaration


  }

  private String _cachedURLForResource(String name, String bundleName, NSArray<String> languages, WORequest request) {
    String result = null;
    if (bundleName != null) {
      WODeployedBundle wodeployedbundle = _cachedBundleForFrameworkNamed(bundleName);
      if (wodeployedbundle != null) {
        result = wodeployedbundle.urlForResource(name, languages);
      }
      if (result == null) {
        result = "/ERROR/NOT_FOUND/framework=" + bundleName + "/filename=" + (name == null ? "*null*" : name);
      }
    }
View Full Code Here


    return completeURL;
  }
 
  protected String _postprocessURL(String url, String bundleName) {
    if (WOApplication.application() instanceof ERXApplication) {
      WODeployedBundle bundle = _cachedBundleForFrameworkNamed(bundleName);
      return ERXApplication.erxApplication()._rewriteResourceURL(url, bundle);
    }
    return url;
  }
View Full Code Here

   */
  public ERXStaticResourceRequestHandler(String frameworkName) {
    if ("app".equals(frameworkName)) {
      frameworkName = null;
    }
    WODeployedBundle bundle = WOApplication.application().resourceManager()._cachedBundleForFrameworkNamed(frameworkName);
    File bundleFile = new File(bundle.bundlePath());
    if (bundle.isFramework()) {
      bundleFile = new File(bundleFile, "WebServerResources");
    }
    else {
      bundleFile = new File(new File(bundleFile, "Contents"), "WebServerResources");
    }
View Full Code Here

            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

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.