Builds a JSF resource URL for given resource.
getFacesResource("main.css", "pf", "4.2.0") // => "https://www.primefaces.org/showcase/javax.faces.resource/main.css.xhtml?ln=pf&v=4.2.0"
The name of the resource, such as primefaces.js
.
The library of the resource, such as primefaces
.
The version of the library, such as 5.1
.
The JSF resource URL for loading the resource.
Given a URI, find the name of the script, such as primefaces-extensions.js
.
The URI of a script
The name of the script.
Gets the resource URI of the first Javascript JS file served as a JSF resource.
The first JavasScript resource URI.
Finds the URL extension of currently included resources, such as jsf
or xhtml
.
This should only be used if extensions mapping is used, see PrimeFaces.isExtensionMapping
.
The URL extension.
Checks if the FacesServlet is mapped with an extension mapping. Common extension mapping are for example:
true
if the FacesServlet is mapped with an extension mapping, false
otherwise.
Generated using TypeDoc
The object with functionality related to handling resources on the server, such as CSS and JavaScript files.