public class SkinnableViewHandler extends ViewHandlerWrapper
Modifier and Type | Field and Description |
---|---|
static String |
ALT_PREFIX |
static String |
INIT_PARAM_RESOLVE_SKINNED_RESOURCES
Binding expression which indicates whether or not
to resolve skinned resources for the current context.
|
static String |
INIT_PARAM_SKINNED_RESOURCES_DIRECTORY
Binding expression which indicates the directory
containing skinned resources.
|
protected ViewHandler |
m_parent |
protected ValueExpression |
m_resolveSkinnedResources |
protected ValueExpression |
m_skinnedResourcesDirectory |
protected Map<String,String> |
m_skinnedResourcesPaths |
static String |
SKIN_PREFIX |
CHARACTER_ENCODING_KEY, DEFAULT_FACELETS_SUFFIX, DEFAULT_SUFFIX, DEFAULT_SUFFIX_PARAM_NAME, DISABLE_FACELET_JSF_VIEWHANDLER_PARAM_NAME, FACELETS_BUFFER_SIZE_PARAM_NAME, FACELETS_DECORATORS_PARAM_NAME, FACELETS_LIBRARIES_PARAM_NAME, FACELETS_REFRESH_PERIOD_PARAM_NAME, FACELETS_SKIP_COMMENTS_PARAM_NAME, FACELETS_SUFFIX_PARAM_NAME, FACELETS_VIEW_MAPPINGS_PARAM_NAME
Constructor and Description |
---|
SkinnableViewHandler(ViewHandler parent)
Standard ViewHandler constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getResourceURL(FacesContext ctx,
String path) |
protected String |
getSkinnedResourcePath(FacesContext ctx,
String name)
Returns the actual resource path for the specified skinned resource name,
or null if the there is no resource for the specified name.
|
protected String |
getSkinnedResourcesDirectory(FacesContext ctx)
Returns the path to the directory in this war containing the skinned resources.
|
protected Map<String,String> |
getSkinnedResourcesPaths(FacesContext ctx)
Returns the map of skin names to actual resource paths.
|
ViewHandler |
getWrapped() |
protected boolean |
resolveSkinnedResources(FacesContext ctx)
Returns true to resolve skinned resources for the specified context;
false to ignore skinned resources.
|
addProtectedView, calculateCharacterEncoding, calculateLocale, calculateRenderKitId, createView, deriveLogicalViewId, deriveViewId, getActionURL, getBookmarkableURL, getProtectedViewsUnmodifiable, getRedirectURL, getViewDeclarationLanguage, initView, removeProtectedView, renderView, restoreView, writeState
public static final String INIT_PARAM_RESOLVE_SKINNED_RESOURCES
public static final String INIT_PARAM_SKINNED_RESOURCES_DIRECTORY
public static final String SKIN_PREFIX
public static final String ALT_PREFIX
protected ViewHandler m_parent
protected ValueExpression m_resolveSkinnedResources
protected ValueExpression m_skinnedResourcesDirectory
public SkinnableViewHandler(ViewHandler parent)
public ViewHandler getWrapped()
getWrapped
in interface FacesWrapper<ViewHandler>
getWrapped
in class ViewHandlerWrapper
public String getResourceURL(FacesContext ctx, String path)
getResourceURL
in class ViewHandlerWrapper
protected boolean resolveSkinnedResources(FacesContext ctx)
protected String getSkinnedResourcesDirectory(FacesContext ctx)
protected Map<String,String> getSkinnedResourcesPaths(FacesContext ctx)
protected String getSkinnedResourcePath(FacesContext ctx, String name)