Package com.webobjects.appserver._private

Examples of com.webobjects.appserver._private.WODynamicElementCreationException


    super(name, associations, template);

        _accesskey = _associations.removeObjectForKey("accesskey");
        _accesskeyElement = _associations.removeObjectForKey("accesskeyElement");
        if(_accesskeyElement == null) {
          _accesskeyElement = new WOConstantValueAssociation("u");
        }
  }
View Full Code Here


    }
  }

  protected static NSDictionary processAssociations(NSDictionary associations) {
    NSMutableDictionary mutableAssociations = (NSMutableDictionary) associations;
    mutableAssociations.setObjectForKey(new WOConstantValueAssociation("javascript:void(0)"), "href");
    return mutableAssociations;
  }
View Full Code Here

    WOAssociation action = (WOAssociation) mutableAssociations.removeObjectForKey("action");
    if (action != null) {
      mutableAssociations.setObjectForKey(action, "invokeAction");
    }
    if (!mutableAssociations.containsKey("elementName")) {
      mutableAssociations.setObjectForKey(new WOConstantValueAssociation("div"), "elementName");
    }
    if (!mutableAssociations.containsKey("style")) {
      mutableAssociations.setObjectForKey(new WOConstantValueAssociation("cursor: pointer;"), "style");
    }
    return mutableAssociations;
  }
View Full Code Here

  private NSMutableDictionary parseDeclarationsWithoutComments(String declarationWithoutComment) throws WOHelperFunctionDeclarationFormatException {
    NSMutableDictionary declarations = new NSMutableDictionary();
    NSMutableDictionary rawDeclarations = _rawDeclarationsWithoutComment(declarationWithoutComment);
    String tagName;
    WODeclaration declaration;
    Enumeration rawDeclarationHeaderEnum = rawDeclarations.keyEnumerator();
    while (rawDeclarationHeaderEnum.hasMoreElements()) {
      String declarationHeader = (String) rawDeclarationHeaderEnum.nextElement();
      String declarationBody = (String) rawDeclarations.objectForKey(declarationHeader);
      int colonIndex = declarationHeader.indexOf(':');
View Full Code Here

  }

  public WOElement dynamicElement(NSDictionary nsdictionary, NSArray nsarray) throws WOHelperFunctionDeclarationFormatException, ClassNotFoundException {
    String s = name();
    WOElement woelement = template();
    WODeclaration wodeclaration = (WODeclaration) nsdictionary.objectForKey(s);
    return _elementWithDeclaration(wodeclaration, s, woelement, nsarray);
  }
View Full Code Here

  }

  private static WODeployedBundle _initAppBundle() {
    Object obj = null;
    try {
      WODeployedBundle wodeployedbundle = WODeployedBundle.deployedBundle();
      obj = wodeployedbundle.projectBundle();
      if (obj != null) {
        log.warn("Application project found: Will locate resources in '" + ((WOProjectBundle) obj).projectPath() + "' rather than '" + wodeployedbundle.bundlePath() + "' .");
      }
      else {
        obj = wodeployedbundle;
      }
    }
View Full Code Here

  }

  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

        errorMessage = request.stringFormValueForKey("errorMessage");
        fullClassName = request.stringFormValueForKey("fullClassName");
        WOResourceManager resources = WOApplication.application().resourceManager();

        // pay no attention to this use of protected API
        WODeployedBundle appBundle = resources._appProjectBundle();
        if (appBundle instanceof WOProjectBundle) {
            WOProjectBundle project = (WOProjectBundle) appBundle;
            _WOProject woproject = project._woProject();
            String filePath = woproject._pathToSourceFileForClass(fullClassName, filename);
            if (filePath == null) {
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.