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.
ALL_PARTIAL_PHASE_CLIENT_IDS, PARTIAL_EVENT_PARAM_NAME, PARTIAL_EXECUTE_PARAM_NAME, PARTIAL_RENDER_PARAM_NAME, RESET_VALUES_PARAM_NAME| Constructor and 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. |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getEvalScripts()
The default behavior of this method is to call |
Collection<String> |
getExecuteIds()
The default behavior of this method is to call
PartialViewContext.getExecuteIds() on the wrapped
PartialViewContext object. |
PartialResponseWriter |
getPartialResponseWriter()
The default behavior of this method is to call
PartialViewContext.getPartialResponseWriter() on the wrapped
PartialViewContext object. |
Collection<String> |
getRenderIds()
The default behavior of this method is to call
PartialViewContext.getRenderIds() on the wrapped
PartialViewContext 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 call
PartialViewContext.isAjaxRequest() on the wrapped
PartialViewContext object. |
boolean |
isExecuteAll()
The default behavior of this method is to call
PartialViewContext.isExecuteAll() on the wrapped
PartialViewContext object. |
boolean |
isPartialRequest()
The default behavior of this method is to call
PartialViewContext.isPartialRequest() on the wrapped
PartialViewContext object. |
boolean |
isRenderAll()
The default behavior of this method is to call
PartialViewContext.isRenderAll() on the wrapped
PartialViewContext object. |
boolean |
isResetValues()
The default behavior of this method is to call
PartialViewContext.isResetValues() on the wrapped
PartialViewContext object. |
void |
processPartial(PhaseId phaseId)
The default behavior of this method is to call
PartialViewContext.processPartial(PhaseId) on the wrapped
PartialViewContext object. |
void |
release()
The default behavior of this method is to call
PartialViewContext.release() on the wrapped
PartialViewContext object. |
void |
setPartialRequest(boolean isPartialRequest)
The default behavior of this method is to call |
void |
setRenderAll(boolean renderAll)
The default behavior of this method is to call
PartialViewContext.setRenderAll(boolean) on the wrapped
PartialViewContext object. |
@Deprecated public PartialViewContextWrapper()
public 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. The getWrapped() will then return the implementation being
wrapped.
wrapped - The implementation being wrapped.public PartialViewContext getWrapped()
FacesWrapperA class that implements this interface uses this method to return an instance of the class being wrapped.
getWrapped in interface FacesWrapper<PartialViewContext>public Collection<String> getExecuteIds()
The default behavior of this method is to call PartialViewContext.getExecuteIds() on the wrapped
PartialViewContext object.
getExecuteIds in class PartialViewContextPartialViewContext.getExecuteIds()public Collection<String> getRenderIds()
The default behavior of this method is to call PartialViewContext.getRenderIds() on the wrapped
PartialViewContext object.
getRenderIds in class PartialViewContextPartialViewContext.getRenderIds()public List<String> getEvalScripts()
The default behavior of this method is to call PartialViewContext.getRenderIds() on the wrapped
PartialViewContext object.
getEvalScripts in class PartialViewContextList of scripts to be evaluated in client side on complete of ajax request.PartialViewContext.getEvalScripts()public PartialResponseWriter getPartialResponseWriter()
The default behavior of this method is to call PartialViewContext.getPartialResponseWriter() on the wrapped
PartialViewContext object.
getPartialResponseWriter in class PartialViewContextResponseWriter for outputPartialViewContext.getPartialResponseWriter()public void setPartialRequest(boolean isPartialRequest)
The default behavior of this method is to call PartialViewContext.setPartialRequest(boolean) on the wrapped
PartialViewContext object.
setPartialRequest in class PartialViewContextisPartialRequest - the value true indicates this is a partial request.PartialViewContext.setPartialRequest(boolean)public boolean isAjaxRequest()
The default behavior of this method is to call PartialViewContext.isAjaxRequest() on the wrapped
PartialViewContext object.
isAjaxRequest in class PartialViewContextPartialViewContext.isAjaxRequest()public boolean isPartialRequest()
The default behavior of this method is to call PartialViewContext.isPartialRequest() on the wrapped
PartialViewContext object.
isPartialRequest in class PartialViewContextPartialViewContext.isPartialRequest()public boolean isExecuteAll()
The default behavior of this method is to call PartialViewContext.isExecuteAll() on the wrapped
PartialViewContext object.
isExecuteAll in class PartialViewContextPartialViewContext.isExecuteAll()public boolean isRenderAll()
The default behavior of this method is to call PartialViewContext.isRenderAll() on the wrapped
PartialViewContext object.
isRenderAll in class PartialViewContextPartialViewContext.isRenderAll()public boolean isResetValues()
The default behavior of this method is to call PartialViewContext.isResetValues() on the wrapped
PartialViewContext object.
isResetValues in class PartialViewContextPartialViewContext.isResetValues()public void setRenderAll(boolean renderAll)
The default behavior of this method is to call PartialViewContext.setRenderAll(boolean) on the wrapped
PartialViewContext object.
setRenderAll in class PartialViewContextrenderAll - the value true indicates the entire view must be rendered.PartialViewContext.setRenderAll(boolean)public void release()
The default behavior of this method is to call PartialViewContext.release() on the wrapped
PartialViewContext object.
release in class PartialViewContextPartialViewContext.release()public void processPartial(PhaseId phaseId)
The default behavior of this method is to call PartialViewContext.processPartial(PhaseId) on the wrapped
PartialViewContext object.
processPartial in class PartialViewContextphaseId - the PhaseId that indicates the lifecycle phase the components will be
processed in.PartialViewContext.processPartial(PhaseId)Copyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.