org.apache.myfaces.shared.renderkit.html.util
Class ResourceUtils
java.lang.Object
org.apache.myfaces.shared.renderkit.html.util.ResourceUtils
public class ResourceUtils
- extends Object
- Since:
- 4.0.1
- Version:
- $Revision: 1200042 $ $Date: 2011-11-09 18:40:12 -0500 (Wed, 09 Nov 2011) $
- Author:
- Leonardo Uribe (latest modification by $Author: lu4242 $)
Method Summary |
static boolean |
isRenderedScript(FacesContext facesContext,
String libraryName,
String resourceName)
|
static boolean |
isRenderedStylesheet(FacesContext facesContext,
String libraryName,
String resourceName)
|
static void |
markScriptAsRendered(FacesContext facesContext,
String libraryName,
String resourceName)
|
static void |
markStylesheetAsRendered(FacesContext facesContext,
String libraryName,
String resourceName)
|
static void |
renderDefaultJsfJsInlineIfNecessary(FacesContext facesContext,
ResponseWriter writer)
|
static void |
renderMyfacesJSInlineIfNecessary(FacesContext facesContext,
ResponseWriter writer)
|
static void |
writeScriptInline(FacesContext facesContext,
ResponseWriter writer,
String libraryName,
String resourceName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JAVAX_FACES_LIBRARY_NAME
public static final String JAVAX_FACES_LIBRARY_NAME
- See Also:
- Constant Field Values
JSF_JS_RESOURCE_NAME
public static final String JSF_JS_RESOURCE_NAME
- See Also:
- Constant Field Values
MYFACES_JS_RESOURCE_NAME
public static final String MYFACES_JS_RESOURCE_NAME
- See Also:
- Constant Field Values
MYFACES_JS_RESOURCE_NAME_UNCOMPRESSED
public static final String MYFACES_JS_RESOURCE_NAME_UNCOMPRESSED
- See Also:
- Constant Field Values
MYFACES_LIBRARY_NAME
public static final String MYFACES_LIBRARY_NAME
- See Also:
- Constant Field Values
JSF_MYFACES_JSFJS_MINIMAL
public static final String JSF_MYFACES_JSFJS_MINIMAL
- See Also:
- Constant Field Values
JSF_MYFACES_JSFJS_MINIMAL_MODERN
public static final String JSF_MYFACES_JSFJS_MINIMAL_MODERN
- See Also:
- Constant Field Values
JSF_MYFACES_JSFJS_NORMAL
public static final String JSF_MYFACES_JSFJS_NORMAL
- See Also:
- Constant Field Values
JSF_UNCOMPRESSED_JS_RESOURCE_NAME
public static final String JSF_UNCOMPRESSED_JS_RESOURCE_NAME
- See Also:
- Constant Field Values
JSF_MINIMAL_JS_RESOURCE_NAME
public static final String JSF_MINIMAL_JS_RESOURCE_NAME
- See Also:
- Constant Field Values
JSF_MINIMAL_MODERN_JS_RESOURCE_NAME
public static final String JSF_MINIMAL_MODERN_JS_RESOURCE_NAME
- See Also:
- Constant Field Values
JSF_MYFACES_JSFJS_I18N
public static final String JSF_MYFACES_JSFJS_I18N
- See Also:
- Constant Field Values
JSF_MYFACES_JSFJS_EXPERIMENTAL
public static final String JSF_MYFACES_JSFJS_EXPERIMENTAL
- See Also:
- Constant Field Values
JSF_MYFACES_JSFJS_LEGACY
public static final String JSF_MYFACES_JSFJS_LEGACY
- See Also:
- Constant Field Values
HEAD_TARGET
public static final String HEAD_TARGET
- See Also:
- Constant Field Values
BODY_TARGET
public static final String BODY_TARGET
- See Also:
- Constant Field Values
FORM_TARGET
public static final String FORM_TARGET
- See Also:
- Constant Field Values
JAVAX_FACES_OUTPUT_COMPONENT_TYPE
public static final String JAVAX_FACES_OUTPUT_COMPONENT_TYPE
- See Also:
- Constant Field Values
JAVAX_FACES_TEXT_RENDERER_TYPE
public static final String JAVAX_FACES_TEXT_RENDERER_TYPE
- See Also:
- Constant Field Values
DEFAULT_SCRIPT_RENDERER_TYPE
public static final String DEFAULT_SCRIPT_RENDERER_TYPE
- See Also:
- Constant Field Values
DEFAULT_STYLESHEET_RENDERER_TYPE
public static final String DEFAULT_STYLESHEET_RENDERER_TYPE
- See Also:
- Constant Field Values
ResourceUtils
public ResourceUtils()
markScriptAsRendered
public static void markScriptAsRendered(FacesContext facesContext,
String libraryName,
String resourceName)
markStylesheetAsRendered
public static void markStylesheetAsRendered(FacesContext facesContext,
String libraryName,
String resourceName)
isRenderedScript
public static boolean isRenderedScript(FacesContext facesContext,
String libraryName,
String resourceName)
isRenderedStylesheet
public static boolean isRenderedStylesheet(FacesContext facesContext,
String libraryName,
String resourceName)
writeScriptInline
public static void writeScriptInline(FacesContext facesContext,
ResponseWriter writer,
String libraryName,
String resourceName)
throws IOException
- Throws:
IOException
renderDefaultJsfJsInlineIfNecessary
public static void renderDefaultJsfJsInlineIfNecessary(FacesContext facesContext,
ResponseWriter writer)
throws IOException
- Throws:
IOException
renderMyfacesJSInlineIfNecessary
public static void renderMyfacesJSInlineIfNecessary(FacesContext facesContext,
ResponseWriter writer)
throws IOException
- Throws:
IOException
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.