public class FlowFacesContext
extends javax.faces.context.FacesContext
FacesContext implementation that delegates all standard FacesContext messaging functionality to a
Spring MessageSource made accessible as part of the current Web Flow request. Additionally, it manages the
renderResponse flag in flash scope so that the execution of the JSF Lifecycle may span multiple
requests in the case of the POST+REDIRECT+GET pattern being enabled.| Modifier and Type | Class and Description |
|---|---|
protected static class |
FlowFacesContext.FlowExternalContext |
| Constructor and Description |
|---|
FlowFacesContext(RequestContext context,
javax.faces.context.FacesContext delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMessage(java.lang.String clientId,
javax.faces.application.FacesMessage message)
Translates a FacesMessage to a Spring Web Flow message and adds it to the current MessageContext
|
javax.faces.application.Application |
getApplication() |
java.util.Iterator<java.lang.String> |
getClientIdsWithMessages()
Returns an Iterator for all component clientId's for which messages have been added.
|
protected javax.faces.context.FacesContext |
getDelegate() |
javax.el.ELContext |
getELContext() |
javax.faces.context.ExternalContext |
getExternalContext() |
javax.faces.application.FacesMessage.Severity |
getMaximumSeverity()
Return the maximum severity level recorded on any FacesMessages that has been queued, whether or not they are
associated with any specific UIComponent.
|
protected FlowFacesContextMessageDelegate |
getMessageDelegate() |
java.util.Iterator<javax.faces.application.FacesMessage> |
getMessages()
Returns an Iterator for all Messages in the current MessageContext that does translation to FacesMessages.
|
java.util.Iterator<javax.faces.application.FacesMessage> |
getMessages(java.lang.String clientId)
Returns an Iterator for all Messages with the given clientId in the current MessageContext that does translation
to FacesMessages.
|
javax.faces.render.RenderKit |
getRenderKit() |
boolean |
getRenderResponse() |
boolean |
getResponseComplete() |
javax.faces.context.ResponseStream |
getResponseStream() |
javax.faces.context.ResponseWriter |
getResponseWriter() |
javax.faces.component.UIViewRoot |
getViewRoot() |
static FlowFacesContext |
newInstance(RequestContext context,
javax.faces.lifecycle.Lifecycle lifecycle) |
void |
release() |
void |
renderResponse() |
void |
responseComplete() |
void |
setResponseStream(javax.faces.context.ResponseStream responseStream) |
void |
setResponseWriter(javax.faces.context.ResponseWriter responseWriter) |
void |
setViewRoot(javax.faces.component.UIViewRoot root) |
getAttributes, getCurrentInstance, getCurrentPhaseId, getExceptionHandler, getMessageList, getMessageList, getNamingContainerSeparatorChar, getPartialViewContext, getResourceLibraryContracts, isPostback, isProcessingEvents, isProjectStage, isReleased, isValidationFailed, setCurrentInstance, setCurrentPhaseId, setExceptionHandler, setProcessingEvents, setResourceLibraryContracts, validationFailedpublic FlowFacesContext(RequestContext context, javax.faces.context.FacesContext delegate)
public static FlowFacesContext newInstance(RequestContext context, javax.faces.lifecycle.Lifecycle lifecycle)
public void addMessage(java.lang.String clientId,
javax.faces.application.FacesMessage message)
addMessage in class javax.faces.context.FacesContextpublic java.util.Iterator<java.lang.String> getClientIdsWithMessages()
getClientIdsWithMessages in class javax.faces.context.FacesContextpublic javax.el.ELContext getELContext()
getELContext in class javax.faces.context.FacesContextpublic javax.faces.application.FacesMessage.Severity getMaximumSeverity()
getMaximumSeverity in class javax.faces.context.FacesContextpublic java.util.Iterator<javax.faces.application.FacesMessage> getMessages()
getMessages in class javax.faces.context.FacesContextpublic java.util.Iterator<javax.faces.application.FacesMessage> getMessages(java.lang.String clientId)
getMessages in class javax.faces.context.FacesContextpublic boolean getRenderResponse()
getRenderResponse in class javax.faces.context.FacesContextpublic boolean getResponseComplete()
getResponseComplete in class javax.faces.context.FacesContextpublic void renderResponse()
renderResponse in class javax.faces.context.FacesContextpublic void responseComplete()
responseComplete in class javax.faces.context.FacesContextpublic javax.faces.application.Application getApplication()
getApplication in class javax.faces.context.FacesContextpublic javax.faces.context.ExternalContext getExternalContext()
getExternalContext in class javax.faces.context.FacesContextpublic javax.faces.render.RenderKit getRenderKit()
getRenderKit in class javax.faces.context.FacesContextpublic javax.faces.context.ResponseStream getResponseStream()
getResponseStream in class javax.faces.context.FacesContextpublic javax.faces.context.ResponseWriter getResponseWriter()
getResponseWriter in class javax.faces.context.FacesContextpublic javax.faces.component.UIViewRoot getViewRoot()
getViewRoot in class javax.faces.context.FacesContextpublic void release()
release in class javax.faces.context.FacesContextpublic void setResponseStream(javax.faces.context.ResponseStream responseStream)
setResponseStream in class javax.faces.context.FacesContextpublic void setResponseWriter(javax.faces.context.ResponseWriter responseWriter)
setResponseWriter in class javax.faces.context.FacesContextpublic void setViewRoot(javax.faces.component.UIViewRoot root)
setViewRoot in class javax.faces.context.FacesContextprotected javax.faces.context.FacesContext getDelegate()
protected FlowFacesContextMessageDelegate getMessageDelegate()