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 Summary
Fields inherited from class jakarta.faces.context.PartialViewContext
ALL_PARTIAL_PHASE_CLIENT_IDS, PARTIAL_EVENT_PARAM_NAME, PARTIAL_EXECUTE_PARAM_NAME, PARTIAL_RENDER_PARAM_NAME, RESET_VALUES_PARAM_NAME
-
Constructor Summary
Constructors 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 Summary
Modifier and Type Method Description List<String>
getEvalScripts()
The default behavior of this method is to callPartialViewContext.getRenderIds()
on the wrappedPartialViewContext
object.Collection<String>
getExecuteIds()
The default behavior of this method is to callPartialViewContext.getExecuteIds()
on the wrappedPartialViewContext
object.PartialResponseWriter
getPartialResponseWriter()
The default behavior of this method is to callPartialViewContext.getPartialResponseWriter()
on the wrappedPartialViewContext
object.Collection<String>
getRenderIds()
The default behavior of this method is to callPartialViewContext.getRenderIds()
on the wrappedPartialViewContext
object.PartialViewContext
getWrapped()
A class that implements this interface uses this method to return an instance of the class being wrapped.boolean
isAjaxRequest()
The default behavior of this method is to callPartialViewContext.isAjaxRequest()
on the wrappedPartialViewContext
object.boolean
isExecuteAll()
The default behavior of this method is to callPartialViewContext.isExecuteAll()
on the wrappedPartialViewContext
object.boolean
isPartialRequest()
The default behavior of this method is to callPartialViewContext.isPartialRequest()
on the wrappedPartialViewContext
object.boolean
isRenderAll()
The default behavior of this method is to callPartialViewContext.isRenderAll()
on the wrappedPartialViewContext
object.boolean
isResetValues()
The default behavior of this method is to callPartialViewContext.isResetValues()
on the wrappedPartialViewContext
object.void
processPartial(PhaseId phaseId)
The default behavior of this method is to callPartialViewContext.processPartial(PhaseId)
on the wrappedPartialViewContext
object.void
release()
The default behavior of this method is to callPartialViewContext.release()
on the wrappedPartialViewContext
object.void
setPartialRequest(boolean isPartialRequest)
The default behavior of this method is to callPartialViewContext.setPartialRequest(boolean)
on the wrappedPartialViewContext
object.void
setRenderAll(boolean renderAll)
The default behavior of this method is to callPartialViewContext.setRenderAll(boolean)
on the wrappedPartialViewContext
object.
-
Constructor Details
-
PartialViewContextWrapper
Deprecated.Use the other constructor taking the implementation being wrapped. -
PartialViewContextWrapper
If 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
-
getWrapped
Description copied from interface:FacesWrapper
A class that implements this interface uses this method to return an instance of the class being wrapped.
- Specified by:
getWrapped
in interfaceFacesWrapper<PartialViewContext>
- Returns:
- the wrapped instance.
-
getExecuteIds
The default behavior of this method is to call
PartialViewContext.getExecuteIds()
on the wrappedPartialViewContext
object.- Specified by:
getExecuteIds
in classPartialViewContext
- Returns:
- the ids for the execute portion of the lifecycle
- See Also:
PartialViewContext.getExecuteIds()
-
getRenderIds
The default behavior of this method is to call
PartialViewContext.getRenderIds()
on the wrappedPartialViewContext
object.- Specified by:
getRenderIds
in classPartialViewContext
- Returns:
- the ids for the render portion of the lifecycle
- See Also:
PartialViewContext.getRenderIds()
-
getEvalScripts
The default behavior of this method is to call
PartialViewContext.getRenderIds()
on the wrappedPartialViewContext
object.- Specified by:
getEvalScripts
in classPartialViewContext
- Returns:
- A mutable
List
of scripts to be evaluated in client side on complete of ajax request. - See Also:
PartialViewContext.getEvalScripts()
-
getPartialResponseWriter
The default behavior of this method is to call
PartialViewContext.getPartialResponseWriter()
on the wrappedPartialViewContext
object.- Specified by:
getPartialResponseWriter
in classPartialViewContext
- Returns:
- the
ResponseWriter
for output - See Also:
PartialViewContext.getPartialResponseWriter()
-
setPartialRequest
public void setPartialRequest(boolean isPartialRequest)The default behavior of this method is to call
PartialViewContext.setPartialRequest(boolean)
on the wrappedPartialViewContext
object.- Specified by:
setPartialRequest
in classPartialViewContext
- Parameters:
isPartialRequest
- the valuetrue
indicates 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 wrappedPartialViewContext
object.- Specified by:
isAjaxRequest
in classPartialViewContext
- Returns:
- whether or not this is an ajax request
- See Also:
PartialViewContext.isAjaxRequest()
-
isPartialRequest
public boolean isPartialRequest()The default behavior of this method is to call
PartialViewContext.isPartialRequest()
on the wrappedPartialViewContext
object.- Specified by:
isPartialRequest
in classPartialViewContext
- Returns:
- whether or not this request is partial
- See Also:
PartialViewContext.isPartialRequest()
-
isExecuteAll
public boolean isExecuteAll()The default behavior of this method is to call
PartialViewContext.isExecuteAll()
on the wrappedPartialViewContext
object.- Specified by:
isExecuteAll
in classPartialViewContext
- Returns:
- whether or not this is an execute all request
- See Also:
PartialViewContext.isExecuteAll()
-
isRenderAll
public boolean isRenderAll()The default behavior of this method is to call
PartialViewContext.isRenderAll()
on the wrappedPartialViewContext
object.- Specified by:
isRenderAll
in classPartialViewContext
- Returns:
- whether or not this is a render all request
- See Also:
PartialViewContext.isRenderAll()
-
isResetValues
public boolean isResetValues()The default behavior of this method is to call
PartialViewContext.isResetValues()
on the wrappedPartialViewContext
object.- Overrides:
isResetValues
in classPartialViewContext
- Returns:
- whether or not this is a reset values request
- See Also:
PartialViewContext.isResetValues()
-
setRenderAll
public void setRenderAll(boolean renderAll)The default behavior of this method is to call
PartialViewContext.setRenderAll(boolean)
on the wrappedPartialViewContext
object.- Specified by:
setRenderAll
in classPartialViewContext
- Parameters:
renderAll
- the valuetrue
indicates 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 wrappedPartialViewContext
object.- Specified by:
release
in classPartialViewContext
- See Also:
PartialViewContext.release()
-
processPartial
The default behavior of this method is to call
PartialViewContext.processPartial(PhaseId)
on the wrappedPartialViewContext
object.- Specified by:
processPartial
in classPartialViewContext
- Parameters:
phaseId
- thePhaseId
that indicates the lifecycle phase the components will be processed in.- See Also:
PartialViewContext.processPartial(PhaseId)
-