Class PartialViewContextWrapper
- All Implemented Interfaces:
- FacesWrapper<PartialViewContext>
public abstract class PartialViewContextWrapper extends PartialViewContext implements FacesWrapper<PartialViewContext>
 Provides a simple implementation of
 PartialViewContext that can be subclassed by developers wishing to provide specialized behavior to an
 existing PartialViewContext instance. The default implementation of all methods is to call through to the
 wrapped ExternalContext instance.
 
 Usage: extend this class and push the implementation being wrapped to the constructor and use getWrapped() to
 access the instance being wrapped.
 
- Since:
- 2.0
- 
Field SummaryFields inherited from class jakarta.faces.context.PartialViewContextALL_PARTIAL_PHASE_CLIENT_IDS, PARTIAL_EVENT_PARAM_NAME, PARTIAL_EXECUTE_PARAM_NAME, PARTIAL_RENDER_PARAM_NAME, RESET_VALUES_PARAM_NAME
- 
Constructor SummaryConstructors Constructor Description PartialViewContextWrapper()Deprecated.Use the other constructor taking the implementation being wrapped.PartialViewContextWrapper(PartialViewContext wrapped)If this partial view context has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor.
- 
Method SummaryModifier and Type Method Description List<String>getEvalScripts()The default behavior of this method is to callPartialViewContext.getRenderIds()on the wrappedPartialViewContextobject.Collection<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.Collection<String>getRenderIds()The default behavior of this method is to callPartialViewContext.getRenderIds()on the wrappedPartialViewContextobject.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.
- 
Constructor Details- 
PartialViewContextWrapperDeprecated.Use the other constructor taking the implementation being wrapped.
- 
PartialViewContextWrapperIf this partial view context has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The getWrapped()will then return the implementation being wrapped.- Parameters:
- wrapped- The implementation being wrapped.
- Since:
- 2.3
 
 
- 
- 
Method Details- 
getWrappedDescription copied from interface:FacesWrapperA class that implements this interface uses this method to return an instance of the class being wrapped. - Specified by:
- getWrappedin interface- FacesWrapper<PartialViewContext>
- Returns:
- the wrapped instance.
 
- 
getExecuteIdsThe default behavior of this method is to call PartialViewContext.getExecuteIds()on the wrappedPartialViewContextobject.- Specified by:
- getExecuteIdsin class- PartialViewContext
- Returns:
- the ids for the execute portion of the lifecycle
- See Also:
- PartialViewContext.getExecuteIds()
 
- 
getRenderIdsThe default behavior of this method is to call PartialViewContext.getRenderIds()on the wrappedPartialViewContextobject.- Specified by:
- getRenderIdsin class- PartialViewContext
- Returns:
- the ids for the render portion of the lifecycle
- See Also:
- PartialViewContext.getRenderIds()
 
- 
getEvalScriptsThe default behavior of this method is to call PartialViewContext.getRenderIds()on the wrappedPartialViewContextobject.- Specified by:
- getEvalScriptsin class- PartialViewContext
- Returns:
- A mutable Listof scripts to be evaluated in client side on complete of ajax request.
- See Also:
- PartialViewContext.getEvalScripts()
 
- 
getPartialResponseWriterThe default behavior of this method is to call PartialViewContext.getPartialResponseWriter()on the wrappedPartialViewContextobject.- Specified by:
- getPartialResponseWriterin class- PartialViewContext
- Returns:
- the ResponseWriterfor output
- See Also:
- PartialViewContext.getPartialResponseWriter()
 
- 
setPartialRequestpublic void setPartialRequest(boolean isPartialRequest)The default behavior of this method is to call PartialViewContext.setPartialRequest(boolean)on the wrappedPartialViewContextobject.- Specified by:
- setPartialRequestin class- PartialViewContext
- Parameters:
- isPartialRequest- the value- trueindicates this is a partial request.
- See Also:
- PartialViewContext.setPartialRequest(boolean)
 
- 
isAjaxRequestpublic boolean isAjaxRequest()The default behavior of this method is to call PartialViewContext.isAjaxRequest()on the wrappedPartialViewContextobject.- Specified by:
- isAjaxRequestin class- PartialViewContext
- Returns:
- whether or not this is an ajax request
- See Also:
- PartialViewContext.isAjaxRequest()
 
- 
isPartialRequestpublic boolean isPartialRequest()The default behavior of this method is to call PartialViewContext.isPartialRequest()on the wrappedPartialViewContextobject.- Specified by:
- isPartialRequestin class- PartialViewContext
- Returns:
- whether or not this request is partial
- See Also:
- PartialViewContext.isPartialRequest()
 
- 
isExecuteAllpublic boolean isExecuteAll()The default behavior of this method is to call PartialViewContext.isExecuteAll()on the wrappedPartialViewContextobject.- Specified by:
- isExecuteAllin class- PartialViewContext
- Returns:
- whether or not this is an execute all request
- See Also:
- PartialViewContext.isExecuteAll()
 
- 
isRenderAllpublic boolean isRenderAll()The default behavior of this method is to call PartialViewContext.isRenderAll()on the wrappedPartialViewContextobject.- Specified by:
- isRenderAllin class- PartialViewContext
- Returns:
- whether or not this is a render all request
- See Also:
- PartialViewContext.isRenderAll()
 
- 
isResetValuespublic boolean isResetValues()The default behavior of this method is to call PartialViewContext.isResetValues()on the wrappedPartialViewContextobject.- Overrides:
- isResetValuesin class- PartialViewContext
- Returns:
- whether or not this is a reset values request
- See Also:
- PartialViewContext.isResetValues()
 
- 
setRenderAllpublic void setRenderAll(boolean renderAll)The default behavior of this method is to call PartialViewContext.setRenderAll(boolean)on the wrappedPartialViewContextobject.- Specified by:
- setRenderAllin class- PartialViewContext
- Parameters:
- renderAll- the value- trueindicates the entire view must be rendered.
- See Also:
- PartialViewContext.setRenderAll(boolean)
 
- 
releasepublic void release()The default behavior of this method is to call PartialViewContext.release()on the wrappedPartialViewContextobject.- Specified by:
- releasein class- PartialViewContext
- See Also:
- PartialViewContext.release()
 
- 
processPartialThe default behavior of this method is to call PartialViewContext.processPartial(PhaseId)on the wrappedPartialViewContextobject.- Specified by:
- processPartialin class- PartialViewContext
- Parameters:
- phaseId- the- PhaseIdthat indicates the lifecycle phase the components will be processed in.
- See Also:
- PartialViewContext.processPartial(PhaseId)
 
 
-