public class ResourceUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ResourceUtils.ResourceInfo |
| Modifier and Type | Field and Description |
|---|---|
static String |
RENDERER_SCRIPT |
static String |
RENDERER_STYLESHEET |
| Modifier and Type | Method and Description |
|---|---|
static void |
addComponentResource(javax.faces.context.FacesContext context,
String name) |
static void |
addComponentResource(javax.faces.context.FacesContext context,
String name,
String library) |
static void |
addComponentResource(javax.faces.context.FacesContext context,
String name,
String library,
String target) |
static List<ResourceUtils.ResourceInfo> |
getComponentResources(javax.faces.context.FacesContext context) |
static String |
getResourceRequestPath(javax.faces.context.FacesContext context,
String resourceName) |
static String |
getResourceURL(javax.faces.context.FacesContext context,
String value) |
static boolean |
isInline(ResourceUtils.ResourceInfo resourceInfo) |
static boolean |
isScript(javax.faces.component.UIComponent component) |
static boolean |
isStylesheet(javax.faces.component.UIComponent component) |
static javax.faces.application.Resource |
newResource(ResourceUtils.ResourceInfo resourceInfo,
javax.faces.context.FacesContext context) |
static ResourceUtils.ResourceInfo |
newResourceInfo(javax.faces.component.UIComponent component) |
public static final String RENDERER_SCRIPT
public static final String RENDERER_STYLESHEET
public static String getResourceURL(javax.faces.context.FacesContext context, String value)
public static String getResourceRequestPath(javax.faces.context.FacesContext context, String resourceName)
public static void addComponentResource(javax.faces.context.FacesContext context,
String name,
String library,
String target)
public static void addComponentResource(javax.faces.context.FacesContext context,
String name,
String library)
public static void addComponentResource(javax.faces.context.FacesContext context,
String name)
public static boolean isScript(javax.faces.component.UIComponent component)
public static boolean isStylesheet(javax.faces.component.UIComponent component)
public static List<ResourceUtils.ResourceInfo> getComponentResources(javax.faces.context.FacesContext context)
public static boolean isInline(ResourceUtils.ResourceInfo resourceInfo)
public static ResourceUtils.ResourceInfo newResourceInfo(javax.faces.component.UIComponent component)
public static javax.faces.application.Resource newResource(ResourceUtils.ResourceInfo resourceInfo, javax.faces.context.FacesContext context)
Copyright © 2020. All rights reserved.