com.liferay.faces.util.context
Class PartialViewContextCleanupImpl
java.lang.Object
javax.faces.context.PartialViewContext
javax.faces.context.PartialViewContextWrapper
com.liferay.faces.util.context.PartialViewContextCleanupImpl
- All Implemented Interfaces:
- javax.faces.FacesWrapper<javax.faces.context.PartialViewContext>
public class PartialViewContextCleanupImpl
- extends javax.faces.context.PartialViewContextWrapper
This class is a wrapper around the PartialViewContext. Its purpose is to provide a way to provide a way
for components to handle the situation of moving from rendered="true" to rendered="false", since JSF does not provide
a way for components to handle this special "cleanup" case during the RENDER_RESPONSE phase.
- Author:
- Neil Griffin
| Fields inherited from class javax.faces.context.PartialViewContext |
ALL_PARTIAL_PHASE_CLIENT_IDS, PARTIAL_EXECUTE_PARAM_NAME, PARTIAL_RENDER_PARAM_NAME |
|
Constructor Summary |
PartialViewContextCleanupImpl(javax.faces.context.PartialViewContext partialViewContext,
javax.faces.context.FacesContext facesContext)
|
|
Method Summary |
protected void |
cleanupAll(javax.faces.context.FacesContext facesContext)
|
protected void |
cleanupPartial(javax.faces.context.FacesContext facesContext,
Collection<String> renderIds)
|
protected void |
encodeCleanup(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
boolean parentRendered)
|
javax.faces.context.PartialResponseWriter |
getPartialResponseWriter()
|
javax.faces.context.PartialViewContext |
getWrapped()
|
void |
processPartial(javax.faces.event.PhaseId phaseId)
|
void |
setPartialRequest(boolean isPartialRequest)
This method is missing from the PartialViewContextWrapper class so it must be implemented here. |
| Methods inherited from class javax.faces.context.PartialViewContextWrapper |
getExecuteIds, getRenderIds, isAjaxRequest, isExecuteAll, isPartialRequest, isRenderAll, release, setRenderAll |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PartialViewContextCleanupImpl
public PartialViewContextCleanupImpl(javax.faces.context.PartialViewContext partialViewContext,
javax.faces.context.FacesContext facesContext)
processPartial
public void processPartial(javax.faces.event.PhaseId phaseId)
- Overrides:
processPartial in class javax.faces.context.PartialViewContextWrapper
cleanupAll
protected void cleanupAll(javax.faces.context.FacesContext facesContext)
throws IOException
- Throws:
IOException
cleanupPartial
protected void cleanupPartial(javax.faces.context.FacesContext facesContext,
Collection<String> renderIds)
encodeCleanup
protected void encodeCleanup(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
boolean parentRendered)
throws IOException
- Throws:
IOException
setPartialRequest
public void setPartialRequest(boolean isPartialRequest)
- This method is missing from the
PartialViewContextWrapper class so it must be implemented here.
- Specified by:
setPartialRequest in class javax.faces.context.PartialViewContext
getPartialResponseWriter
public javax.faces.context.PartialResponseWriter getPartialResponseWriter()
- Overrides:
getPartialResponseWriter in class javax.faces.context.PartialViewContextWrapper
getWrapped
public javax.faces.context.PartialViewContext getWrapped()
- Specified by:
getWrapped in interface javax.faces.FacesWrapper<javax.faces.context.PartialViewContext>- Overrides:
getWrapped in class javax.faces.context.PartialViewContextWrapper
Copyright © 2014 Liferay, Inc.. All Rights Reserved.