public class

ResourceManagerUtils

extends Object
java.lang.Object
   ↳ org.apache.myfaces.tobago.context.ResourceManagerUtils

Summary

Public Methods
static String getBlankPage(FacesContext facesContext)
Blank page e.
static String getDisabledImageWithPath(FacesContext facesContext, String image)
static String getImageWithPath(FacesContext facesContext, String name)
Searches for an image and return it with the context path
static String getImageWithPath(FacesContext facesContext, String name, boolean ignoreMissing)
Searches for an image and return it with the context path
static String getPageWithoutContextPath(FacesContext facesContext, String name)
static String getProperty(FacesContext facesContext, String bundle, String key)
static String getPropertyNotNull(FacesContext facesContext, String bundle, String key)
static List<String> getScripts(FacesContext facesContext, String name)
static String getScriptsAsJSArray(FacesContext facesContext, String[] names)
static List<String> getStyles(FacesContext facesContext, String name)
static String getStylesAsJSArray(FacesContext facesContext, String[] names)
static Measure getThemeMeasure(FacesContext facesContext, Configurable configurable, String name)
static boolean isAbsoluteResource(String value)
Detects if the value is an absolute resource or if the value has to be processed by the theme mechanism.
static String toJSArray(List<String> list)
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static String getBlankPage (FacesContext facesContext)

Blank page e. g. useful to set src of iframes (to prevent https problems in ie, see TOBAGO-538)

public static String getDisabledImageWithPath (FacesContext facesContext, String image)

public static String getImageWithPath (FacesContext facesContext, String name)

Searches for an image and return it with the context path

public static String getImageWithPath (FacesContext facesContext, String name, boolean ignoreMissing)

Searches for an image and return it with the context path

public static String getPageWithoutContextPath (FacesContext facesContext, String name)

public static String getProperty (FacesContext facesContext, String bundle, String key)

public static String getPropertyNotNull (FacesContext facesContext, String bundle, String key)

public static List<String> getScripts (FacesContext facesContext, String name)

public static String getScriptsAsJSArray (FacesContext facesContext, String[] names)

public static List<String> getStyles (FacesContext facesContext, String name)

public static String getStylesAsJSArray (FacesContext facesContext, String[] names)

public static Measure getThemeMeasure (FacesContext facesContext, Configurable configurable, String name)

public static boolean isAbsoluteResource (String value)

Detects if the value is an absolute resource or if the value has to be processed by the theme mechanism. A resource will be treated as absolute, if the value starts with HTTP:, HTTPS:, FTP: or a slash. The case will be ignored by this check. Null values will return true.

Parameters
value the given resource link.
Returns
  • true if it is an external or absolute resource.

public static String toJSArray (List<String> list)