Class PartialViewContextWrapper
- java.lang.Object
-
- javax.faces.context.PartialViewContext
-
- javax.faces.context.PartialViewContextWrapper
-
- All Implemented Interfaces:
FacesWrapper<PartialViewContext>
public abstract class PartialViewContextWrapper extends PartialViewContext implements FacesWrapper<PartialViewContext>
Provides a simple implementation of
PartialViewContextthat can be subclassed by developers wishing to provide specialized behavior to an existingPartialViewContextinstance. The default implementation of all methods is to call through to the wrappedExternalContextinstance.Usage: extend this class and override
getWrapped()to return the instance being wrapping.- Since:
- 2.0
-
-
Field Summary
-
Fields inherited from class javax.faces.context.PartialViewContext
ALL_PARTIAL_PHASE_CLIENT_IDS, PARTIAL_EXECUTE_PARAM_NAME, PARTIAL_RENDER_PARAM_NAME, RESET_VALUES_PARAM_NAME
-
-
Constructor Summary
Constructors Constructor Description PartialViewContextWrapper()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.Collection<java.lang.String>getExecuteIds()The default behavior of this method is to callPartialViewContext.getExecuteIds()on the wrappedPartialViewContextobject.PartialResponseWritergetPartialResponseWriter()The default behavior of this method is to callPartialViewContext.getPartialResponseWriter()on the wrappedPartialViewContextobject.java.util.Collection<java.lang.String>getRenderIds()The default behavior of this method is to callPartialViewContext.getRenderIds()on the wrappedPartialViewContextobject.abstract PartialViewContextgetWrapped()A class that implements this interface uses this method to return an instance of the class being wrapped.booleanisAjaxRequest()The default behavior of this method is to callPartialViewContext.isAjaxRequest()on the wrappedPartialViewContextobject.booleanisExecuteAll()The default behavior of this method is to callPartialViewContext.isExecuteAll()on the wrappedPartialViewContextobject.booleanisPartialRequest()The default behavior of this method is to callPartialViewContext.isPartialRequest()on the wrappedPartialViewContextobject.booleanisRenderAll()The default behavior of this method is to callPartialViewContext.isRenderAll()on the wrappedPartialViewContextobject.booleanisResetValues()The default behavior of this method is to callPartialViewContext.isResetValues()on the wrappedPartialViewContextobject.voidprocessPartial(PhaseId phaseId)The default behavior of this method is to callPartialViewContext.processPartial(PhaseId)on the wrappedPartialViewContextobject.voidrelease()The default behavior of this method is to callPartialViewContext.release()on the wrappedPartialViewContextobject.voidsetPartialRequest(boolean isPartialRequest)The default behavior of this method is to callPartialViewContext.setPartialRequest(boolean)on the wrappedPartialViewContextobject.voidsetRenderAll(boolean renderAll)The default behavior of this method is to callPartialViewContext.setRenderAll(boolean)on the wrappedPartialViewContextobject.
-
-
-
Method Detail
-
getWrapped
public abstract PartialViewContext getWrapped()
Description copied from interface:FacesWrapperA class that implements this interface uses this method to return an instance of the class being wrapped.
- Specified by:
getWrappedin interfaceFacesWrapper<PartialViewContext>- Returns:
- the wrapped
PartialViewContextinstance - See Also:
FacesWrapper.getWrapped()
-
getExecuteIds
public java.util.Collection<java.lang.String> getExecuteIds()
The default behavior of this method is to call
PartialViewContext.getExecuteIds()on the wrappedPartialViewContextobject.- Specified by:
getExecuteIdsin classPartialViewContext- See Also:
PartialViewContext.getExecuteIds()
-
getRenderIds
public java.util.Collection<java.lang.String> getRenderIds()
The default behavior of this method is to call
PartialViewContext.getRenderIds()on the wrappedPartialViewContextobject.- Specified by:
getRenderIdsin classPartialViewContext- See Also:
PartialViewContext.getRenderIds()
-
getPartialResponseWriter
public PartialResponseWriter getPartialResponseWriter()
The default behavior of this method is to call
PartialViewContext.getPartialResponseWriter()on the wrappedPartialViewContextobject.- Specified by:
getPartialResponseWriterin classPartialViewContext- See Also:
PartialViewContext.getPartialResponseWriter()
-
setPartialRequest
public void setPartialRequest(boolean isPartialRequest)
The default behavior of this method is to call
PartialViewContext.setPartialRequest(boolean)on the wrappedPartialViewContextobject.- Specified by:
setPartialRequestin classPartialViewContext- Parameters:
isPartialRequest- the valuetrueindicates this is a partial request.- See Also:
PartialViewContext.setPartialRequest(boolean)
-
isAjaxRequest
public boolean isAjaxRequest()
The default behavior of this method is to call
PartialViewContext.isAjaxRequest()on the wrappedPartialViewContextobject.- Specified by:
isAjaxRequestin classPartialViewContext- See Also:
PartialViewContext.isAjaxRequest()
-
isPartialRequest
public boolean isPartialRequest()
The default behavior of this method is to call
PartialViewContext.isPartialRequest()on the wrappedPartialViewContextobject.- Specified by:
isPartialRequestin classPartialViewContext- See Also:
PartialViewContext.isPartialRequest()
-
isExecuteAll
public boolean isExecuteAll()
The default behavior of this method is to call
PartialViewContext.isExecuteAll()on the wrappedPartialViewContextobject.- Specified by:
isExecuteAllin classPartialViewContext- See Also:
PartialViewContext.isExecuteAll()
-
isRenderAll
public boolean isRenderAll()
The default behavior of this method is to call
PartialViewContext.isRenderAll()on the wrappedPartialViewContextobject.- Specified by:
isRenderAllin classPartialViewContext- See Also:
PartialViewContext.isRenderAll()
-
isResetValues
public boolean isResetValues()
The default behavior of this method is to call
PartialViewContext.isResetValues()on the wrappedPartialViewContextobject.- Overrides:
isResetValuesin classPartialViewContext- See Also:
PartialViewContext.isResetValues()
-
setRenderAll
public void setRenderAll(boolean renderAll)
The default behavior of this method is to call
PartialViewContext.setRenderAll(boolean)on the wrappedPartialViewContextobject.- Specified by:
setRenderAllin classPartialViewContext- Parameters:
renderAll- the valuetrueindicates the entire view must be rendered.- See Also:
PartialViewContext.setRenderAll(boolean)
-
release
public void release()
The default behavior of this method is to call
PartialViewContext.release()on the wrappedPartialViewContextobject.- Specified by:
releasein classPartialViewContext- See Also:
PartialViewContext.release()
-
processPartial
public void processPartial(PhaseId phaseId)
The default behavior of this method is to call
PartialViewContext.processPartial(PhaseId)on the wrappedPartialViewContextobject.- Specified by:
processPartialin classPartialViewContext- Parameters:
phaseId- thePhaseIdthat indicates the lifecycle phase the components will be processed in.- See Also:
PartialViewContext.processPartial(PhaseId)
-
-