Package org.omnifaces.resourcehandler

Examples of org.omnifaces.resourcehandler.ResourceIdentifier


      boolean ajaxRenderAll = ajaxContext.isRenderAll();
      boolean alreadyAdded = view.getComponentResources(context, "body").contains(this);

      if (!(ajaxRequest && !ajaxRenderAll) || !alreadyAdded) {
        view.addComponentResource(context, this, "body");
        Hacks.setScriptResourceRendered(context, new ResourceIdentifier(this));
      }
    }
  }
View Full Code Here


    Set<ResourceIdentifier> resourceIdentifiers = new LinkedHashSet<>();

    for (Object resource : resources) {
      String libraryName = invokeMethod(resource, "getLibraryName");
      String resourceName = invokeMethod(resource, "getResourceName");
      resourceIdentifiers.add(new ResourceIdentifier(libraryName, resourceName));
    }

    return resourceIdentifiers;
  }
View Full Code Here

TOP

Related Classes of org.omnifaces.resourcehandler.ResourceIdentifier

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.