public class ExtendedPartialViewContextImpl extends ExtendedPartialViewContext
The RichFaces custom version of PartialViewContext
Unfortunately, it is not possible to get the parameters value from inside PartialViewContextFactory (due to encoding issues), so a RichFaces implementation wrapping the original context is created. It either delegates calls to the wrapped context (if the request does not include ‘org.richfaces.ajax.component’ parameter), or it executes the necessary logic (for RichFaces-initiated requests). The detectContextMode() method is responsible for this. Due to this issue we have to re-implement big portion of PartialViewContext functionality in our class.
Important differences of RichFaces implementation:
Constructor and Description |
---|
ExtendedPartialViewContextImpl(javax.faces.context.PartialViewContext wrappedViewContext,
javax.faces.context.FacesContext facesContext) |
Modifier and Type | Method and Description |
---|---|
protected void |
addImplicitExecuteIds(Collection<String> ids) |
protected void |
addImplicitRenderIds(Collection<String> ids,
boolean limitRender) |
protected void |
addJavaScriptServicePageScripts(javax.faces.context.FacesContext context) |
protected org.richfaces.context.ExtendedPartialViewContextImpl.ContextMode |
detectContextMode() |
protected void |
executeComponents(javax.faces.event.PhaseId phaseId,
Collection<String> executeIds) |
Collection<String> |
getExecuteIds() |
javax.faces.context.PartialResponseWriter |
getPartialResponseWriter() |
Collection<String> |
getRenderIds() |
boolean |
isAjaxRequest() |
boolean |
isExecuteAll() |
boolean |
isPartialRequest() |
boolean |
isRenderAll() |
void |
processPartial(javax.faces.event.PhaseId phaseId) |
protected void |
processPartialExecutePhase(javax.faces.event.PhaseId phaseId) |
protected void |
processPartialRenderPhase() |
void |
release() |
protected void |
renderExtensions(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
void |
setPartialRequest(boolean isPartialRequest) |
void |
setRenderAll(boolean isRenderAll) |
appendOnbeforedomupdate, appendOncomplete, getFacesContext, getInstance, getOnbeforedomupdate, getOncomplete, getResponseComponentDataMap, getResponseData, isLimitRender, prependOnbeforedomupdate, prependOncomplete, setLimitRender, setResponseData
public ExtendedPartialViewContextImpl(javax.faces.context.PartialViewContext wrappedViewContext, javax.faces.context.FacesContext facesContext)
public Collection<String> getExecuteIds()
getExecuteIds
in class javax.faces.context.PartialViewContext
public Collection<String> getRenderIds()
getRenderIds
in class javax.faces.context.PartialViewContext
public boolean isAjaxRequest()
isAjaxRequest
in class javax.faces.context.PartialViewContext
public boolean isPartialRequest()
isPartialRequest
in class javax.faces.context.PartialViewContext
public void setPartialRequest(boolean isPartialRequest)
setPartialRequest
in class javax.faces.context.PartialViewContext
public boolean isExecuteAll()
isExecuteAll
in class javax.faces.context.PartialViewContext
public boolean isRenderAll()
isRenderAll
in class javax.faces.context.PartialViewContext
public void setRenderAll(boolean isRenderAll)
setRenderAll
in class javax.faces.context.PartialViewContext
public javax.faces.context.PartialResponseWriter getPartialResponseWriter()
getPartialResponseWriter
in class javax.faces.context.PartialViewContext
public void processPartial(javax.faces.event.PhaseId phaseId)
processPartial
in class javax.faces.context.PartialViewContext
protected void processPartialExecutePhase(javax.faces.event.PhaseId phaseId)
protected void executeComponents(javax.faces.event.PhaseId phaseId, Collection<String> executeIds)
protected void processPartialRenderPhase()
public void release()
release
in class ExtendedPartialViewContext
protected void addImplicitExecuteIds(Collection<String> ids)
protected void addImplicitRenderIds(Collection<String> ids, boolean limitRender)
protected void addJavaScriptServicePageScripts(javax.faces.context.FacesContext context)
protected void renderExtensions(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws IOException
IOException
protected org.richfaces.context.ExtendedPartialViewContextImpl.ContextMode detectContextMode()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.