Package org.apache.myfaces.context
Class RequestViewContext
java.lang.Object
org.apache.myfaces.context.RequestViewContext
- Since:
- 2.0.2
- Version:
- $Revision$ $Date$
- Author:
- Leonardo Uribe (latest modification by $Author$)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestViewContextstatic RequestViewContextstatic RequestViewContextgetCurrentInstance(FacesContext ctx, UIViewRoot root) static RequestViewContextgetCurrentInstance(FacesContext ctx, UIViewRoot root, boolean create) getRenderTargetComponentList(String target) booleanisClassAlreadyProcessed(Class<?> inspectedClass) booleanisRenderTarget(String target) booleanstatic RequestViewContextvoidrefreshRequestViewContext(FacesContext facesContext, UIViewRoot root) Scans UIViewRoot facets with added component resources by the effect of ResourceDependency annotation, and register the associated inspected classes so new component resources will not be added to the component tree again and again.voidsetClassProcessed(Class<?> inspectedClass) static voidsetCurrentInstance(FacesContext ctx, UIViewRoot root, RequestViewContext rvc) voidsetRenderTarget(String target, boolean value, UIComponent component) voidsetRequestViewMetadata(RequestViewMetadata requestViewMetadata) voidsetResourceDependencyAsProcessed(ResourceDependency dependency)
-
Field Details
-
VIEW_CONTEXT_KEY
- See Also:
-
RESOURCE_DEPENDENCY_INSPECTED_CLASS
- See Also:
-
-
Constructor Details
-
RequestViewContext
public RequestViewContext() -
RequestViewContext
-
-
Method Details
-
getCurrentInstance
-
getCurrentInstance
-
getCurrentInstance
-
getCurrentInstance
public static RequestViewContext getCurrentInstance(FacesContext ctx, UIViewRoot root, boolean create) -
newInstance
-
setCurrentInstance
-
isResourceDependencyAlreadyProcessed
-
setResourceDependencyAsProcessed
-
isClassAlreadyProcessed
-
setClassProcessed
-
isRenderTarget
-
setRenderTarget
-
getRenderTargetComponentList
-
refreshRequestViewContext
Scans UIViewRoot facets with added component resources by the effect of ResourceDependency annotation, and register the associated inspected classes so new component resources will not be added to the component tree again and again.- Parameters:
facesContext-root-
-
getRequestViewMetadata
-
setRequestViewMetadata
-