Examples of HeaderResourceElement


Examples of org.ajax4jsf.templatecompiler.elements.vcp.HeaderResourceElement

      CompilationContext compilationContext = rootElement
          .getComponentBean();

      addResource(configBean, renderer, builderConfig, compilationContext);
    } else if (templateElement instanceof HeaderResourceElement) {
      HeaderResourceElement resourceElement = (HeaderResourceElement) templateElement;

      ResourceType type = null;
      if (templateElement instanceof HeaderScriptsElement) {
        type = ResourceType.SCRIPT;
      } else if (templateElement instanceof HeaderStylesElement) {
        type = ResourceType.STYLE;
      }

      String[] paths = resourceElement.getResourcePaths();
      if (paths != null) {
        for (int i = 0; i < paths.length; i++) {
          String string = paths[i];

          configBean.addResource(string, packageName, type, false);
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.