public class ExtendedPartialViewContextImpl
extends org.richfaces.context.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, setResponseDatapublic ExtendedPartialViewContextImpl(javax.faces.context.PartialViewContext wrappedViewContext,
javax.faces.context.FacesContext facesContext)
public Collection<String> getExecuteIds()
getExecuteIds in class javax.faces.context.PartialViewContextpublic Collection<String> getRenderIds()
getRenderIds in class javax.faces.context.PartialViewContextpublic boolean isAjaxRequest()
isAjaxRequest in class javax.faces.context.PartialViewContextpublic boolean isPartialRequest()
isPartialRequest in class javax.faces.context.PartialViewContextpublic void setPartialRequest(boolean isPartialRequest)
setPartialRequest in class javax.faces.context.PartialViewContextpublic boolean isExecuteAll()
isExecuteAll in class javax.faces.context.PartialViewContextpublic boolean isRenderAll()
isRenderAll in class javax.faces.context.PartialViewContextpublic void setRenderAll(boolean isRenderAll)
setRenderAll in class javax.faces.context.PartialViewContextpublic javax.faces.context.PartialResponseWriter getPartialResponseWriter()
getPartialResponseWriter in class javax.faces.context.PartialViewContextpublic void processPartial(javax.faces.event.PhaseId phaseId)
processPartial in class javax.faces.context.PartialViewContextprotected 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 org.richfaces.context.ExtendedPartialViewContextprotected 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
IOExceptionprotected org.richfaces.context.ExtendedPartialViewContextImpl.ContextMode detectContextMode()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.