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 |
---|---|
java.util.List<java.lang.String> |
getEvalScripts()
The default behavior of this method is to call |
java.util.Collection<java.lang.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. |
java.util.Collection<java.lang.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()
FacesWrapper
A class that implements this interface uses this method to return an instance of the class being wrapped.
getWrapped
in interface FacesWrapper<PartialViewContext>
public java.util.Collection<java.lang.String> getExecuteIds()
The default behavior of this method is to call PartialViewContext.getExecuteIds()
on the wrapped
PartialViewContext
object.
getExecuteIds
in class PartialViewContext
PartialViewContext.getExecuteIds()
public java.util.Collection<java.lang.String> getRenderIds()
The default behavior of this method is to call PartialViewContext.getRenderIds()
on the wrapped
PartialViewContext
object.
getRenderIds
in class PartialViewContext
PartialViewContext.getRenderIds()
public java.util.List<java.lang.String> getEvalScripts()
The default behavior of this method is to call PartialViewContext.getRenderIds()
on the wrapped
PartialViewContext
object.
getEvalScripts
in class PartialViewContext
List
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 PartialViewContext
ResponseWriter
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 PartialViewContext
isPartialRequest
- 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 PartialViewContext
PartialViewContext.isAjaxRequest()
public boolean isPartialRequest()
The default behavior of this method is to call PartialViewContext.isPartialRequest()
on the wrapped
PartialViewContext
object.
isPartialRequest
in class PartialViewContext
PartialViewContext.isPartialRequest()
public boolean isExecuteAll()
The default behavior of this method is to call PartialViewContext.isExecuteAll()
on the wrapped
PartialViewContext
object.
isExecuteAll
in class PartialViewContext
PartialViewContext.isExecuteAll()
public boolean isRenderAll()
The default behavior of this method is to call PartialViewContext.isRenderAll()
on the wrapped
PartialViewContext
object.
isRenderAll
in class PartialViewContext
PartialViewContext.isRenderAll()
public boolean isResetValues()
The default behavior of this method is to call PartialViewContext.isResetValues()
on the wrapped
PartialViewContext
object.
isResetValues
in class PartialViewContext
PartialViewContext.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 PartialViewContext
renderAll
- 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 PartialViewContext
PartialViewContext.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 PartialViewContext
phaseId
- the PhaseId
that indicates the lifecycle phase the components will be
processed in.PartialViewContext.processPartial(PhaseId)