Package com.webmethods.caf.faces.view
Class SkinnableViewHandler
java.lang.Object
javax.faces.application.ViewHandler
javax.faces.application.ViewHandlerWrapper
com.webmethods.caf.faces.view.SkinnableViewHandler
- All Implemented Interfaces:
FacesWrapper<ViewHandler>
View handler which can resolve skinned properties.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
Binding expression which indicates whether or not to resolve skinned resources for the current context.static final String
Binding expression which indicates the directory containing skinned resources.protected ViewHandler
protected ValueExpression
protected ValueExpression
static final String
Fields inherited from class javax.faces.application.ViewHandler
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetResourceURL
(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
Returns the path to the directory in this war containing the skinned resources.Returns the map of skin names to actual resource paths.protected boolean
Returns true to resolve skinned resources for the specified context; false to ignore skinned resources.Methods inherited from class javax.faces.application.ViewHandlerWrapper
addProtectedView, calculateCharacterEncoding, calculateLocale, calculateRenderKitId, createView, deriveLogicalViewId, deriveViewId, getActionURL, getBookmarkableURL, getProtectedViewsUnmodifiable, getRedirectURL, getViewDeclarationLanguage, getViews, getViews, getWebsocketURL, initView, removeProtectedView, renderView, restoreView, writeState
-
Field Details
-
INIT_PARAM_RESOLVE_SKINNED_RESOURCES
Binding expression which indicates whether or not to resolve skinned resources for the current context.- See Also:
-
INIT_PARAM_SKINNED_RESOURCES_DIRECTORY
Binding expression which indicates the directory containing skinned resources.- See Also:
-
SKIN_PREFIX
- See Also:
-
ALT_PREFIX
- See Also:
-
m_parent
-
m_resolveSkinnedResources
-
m_skinnedResourcesDirectory
-
m_skinnedResourcesPaths
-
-
Constructor Details
-
SkinnableViewHandler
Standard ViewHandler constructor.
-
-
Method Details
-
getWrapped
- Specified by:
getWrapped
in interfaceFacesWrapper<ViewHandler>
- Overrides:
getWrapped
in classViewHandlerWrapper
-
getResourceURL
- Overrides:
getResourceURL
in classViewHandlerWrapper
-
resolveSkinnedResources
Returns true to resolve skinned resources for the specified context; false to ignore skinned resources. -
getSkinnedResourcesDirectory
Returns the path to the directory in this war containing the skinned resources. Use forward-slashes ("/") for path separators. Null, empty string (""), or forward-slash ("/") indicates the root of the war. -
getSkinnedResourcesPaths
Returns the map of skin names to actual resource paths. Ex: {images/move-left.gif=/myskin/images/move-left.gif, images/move-right.gif=/myskin/images/move-right.gif} -
getSkinnedResourcePath
Returns the actual resource path for the specified skinned resource name, or null if the there is no resource for the specified name. For example, might return "/myskin/images/move-right.gif" for "images/move-right.gif" name. Note that the actual resource path MUST NOT start with "/skin/".
-