public final class Hacks extends Object
Modifier and Type | Method and Description |
---|---|
static PartialViewContext |
getRichFacesPartialViewContext()
RichFaces PartialViewContext implementation does not extend from PartialViewContextWrapper.
|
static Collection<String> |
getRichFacesRenderIds()
RichFaces PartialViewContext implementation does not have the getRenderIds() method properly implemented.
|
static Set<ResourceIdentifier> |
getRichFacesResourceLibraryResources(ResourceIdentifier id)
Returns an ordered set of all JSF resource identifiers for the given RichFaces resource library resources.
|
static PartialViewContext |
getRichFacesWrappedPartialViewContext()
RichFaces PartialViewContext implementation does not have any getWrapped() method to return the wrapped
PartialViewContext.
|
static boolean |
isRichFacesInstalled()
Returns true if RichFaces is installed.
|
static boolean |
isRichFacesResourceLibraryRenderer(String rendererType)
Returns true if the given renderer type is recognizeable as RichFaces resource library renderer.
|
static boolean |
isRichFacesResourceOptimizationEnabled()
RichFaces "resource optimization" do not support
Resource.getURL() and Resource.getInputStream() . |
public static boolean isRichFacesInstalled()
public static PartialViewContext getRichFacesPartialViewContext()
FacesContext.getPartialViewContext()
.public static Collection<String> getRichFacesRenderIds()
public static PartialViewContext getRichFacesWrappedPartialViewContext()
public static boolean isRichFacesResourceOptimizationEnabled()
Resource.getURL()
and Resource.getInputStream()
.
The combined resource handler has to manually create the URL based on Resource.getRequestPath()
and the
current request domain URL whenever RichFaces "resource optimization" is enabled.public static boolean isRichFacesResourceLibraryRenderer(String rendererType)
rendererType
- The renderer type to be checked.public static Set<ResourceIdentifier> getRichFacesResourceLibraryResources(ResourceIdentifier id)
id
- The resource identifier of the RichFaces resource library (e.g. org.richfaces:ajax.reslib).