Examples of HeadResource


Examples of com.liferay.faces.bridge.renderkit.html_basic.HeadResource

  public void checkResourcesForDuplicates(ArrayList<HeadResource> resources, String whichResources) {
    int numberOfResources = resources.size();

    for (int i = 0; i < numberOfResources; i++) {
      HeadResource resource1 = resources.get(i);

      for (int j = i + 1; j < numberOfResources; j++) {
        HeadResource resource2 = resources.get(j);

        if (!resource2.isDuplicate() && resource1.equals(resource2)) {
          logger.log(Level.INFO,
            "checkResourcesForDuplicates: " + whichResources + " occur more than once: type = " +
            resource1.getType() + " url = " + resource1.getURL());
          resource2.setDuplicate(true);
          assertTrue(whichResources + " occur more than once: type = " + resource1.getType() + " url = " +
            resource1.getURL(), false);

          break;
        }
View Full Code Here

Examples of com.liferay.faces.bridge.renderkit.html_basic.HeadResource

            if (rel == null) {
              logger.log(Level.INFO, "rel == null, type = " + type);
            } else {
              if ("stylesheet".equals(rel)) {
//                logger.log(Level.INFO, "convertToHeadResources: url = " + url);
                resources.add(new HeadResource(type, url));
              }
            }
          } else { // "script".equals(type)
             if (url.contains("jsf.js")) {
               logger.log(Level.INFO, "convertToHeadResources: type = " + type + " url = " + url);
             }
             resources.add(new HeadResource(type, url));
          }
        }
      }
    }
View Full Code Here

Examples of com.liferay.faces.bridge.renderkit.html_basic.HeadResource

    int totalHeadResources = headResources.size();

    for (int i = 0; i < totalHeadResources; i++) {

      HeadResource headResource1 = headResources.get(i);

      for (int j = i + 1; j < totalHeadResources; j++) {
        HeadResource headResource2 = headResources.get(j);

        if (!headResource2.isDuplicate() && headResource1.equals(headResource2)) {

          headResource2.setDuplicate(true);

          break;
        }
      }
    }

    Iterator<HeadResource> itr = headResources.iterator();

    while (itr.hasNext()) {
      HeadResource headResource = itr.next();

      if (headResource.isDuplicate()) {
        itr.remove();
      }
    }

  }
View Full Code Here

Examples of com.liferay.faces.bridge.renderkit.html_basic.HeadResource

    @Override
    public void startElement(String uri, String localName, String qName, Attributes attributes)
      throws SAXException {

      if (!WebKeys.PAGE_TOP.equals(qName)) {
        headResource = new HeadResource(qName, attributes);
        headResources.add(headResource);
      }
    }
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.