public class FlowFacesContext
extends javax.faces.context.FacesContextWrapper
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.FlowExternalContext
Modifier and Type | Class and Description |
---|---|
static class |
FlowFacesContext.FacesMessageSource
A Spring Message
Source that originated from JSF. |
protected static class |
FlowFacesContext.FlowFacesMessage
Adapter class to convert a
FacesMessage to a Spring Message . |
Constructor and Description |
---|
FlowFacesContext(RequestContext context,
javax.faces.context.FacesContext wrapped) |
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
|
java.util.Iterator<java.lang.String> |
getClientIdsWithMessages()
Returns an Iterator for all component clientId's for which messages have been added.
|
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.
|
java.util.List<javax.faces.application.FacesMessage> |
getMessageList()
Returns a List for all Messages in the current MessageContext that does translation to FacesMessages.
|
java.util.List<javax.faces.application.FacesMessage> |
getMessageList(java.lang.String clientId)
Returns a List for all Messages with the given clientId in the current MessageContext that does translation to
FacesMessages.
|
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.context.PartialViewContext |
getPartialViewContext() |
boolean |
getRenderResponse() |
boolean |
getResponseComplete() |
javax.faces.context.FacesContext |
getWrapped() |
boolean |
isValidationFailed() |
static FlowFacesContext |
newInstance(RequestContext context,
javax.faces.lifecycle.Lifecycle lifecycle) |
void |
release() |
void |
renderResponse() |
void |
responseComplete() |
getApplication, getAttributes, getCurrentPhaseId, getExceptionHandler, getNamingContainerSeparatorChar, getRenderKit, getResourceLibraryContracts, getResponseStream, getResponseWriter, getViewRoot, isPostback, isProcessingEvents, isProjectStage, isReleased, setCurrentPhaseId, setExceptionHandler, setProcessingEvents, setResourceLibraryContracts, setResponseStream, setResponseWriter, setViewRoot, validationFailed
public FlowFacesContext(RequestContext context, javax.faces.context.FacesContext wrapped)
public javax.faces.context.FacesContext getWrapped()
getWrapped
in interface javax.faces.FacesWrapper<javax.faces.context.FacesContext>
getWrapped
in class javax.faces.context.FacesContextWrapper
public void release()
release
in class javax.faces.context.FacesContextWrapper
public javax.faces.context.ExternalContext getExternalContext()
getExternalContext
in class javax.faces.context.FacesContextWrapper
public javax.faces.context.PartialViewContext getPartialViewContext()
getPartialViewContext
in class javax.faces.context.FacesContextWrapper
public javax.el.ELContext getELContext()
getELContext
in class javax.faces.context.FacesContextWrapper
public boolean getRenderResponse()
getRenderResponse
in class javax.faces.context.FacesContextWrapper
public boolean getResponseComplete()
getResponseComplete
in class javax.faces.context.FacesContextWrapper
public void renderResponse()
renderResponse
in class javax.faces.context.FacesContextWrapper
public void responseComplete()
responseComplete
in class javax.faces.context.FacesContextWrapper
public boolean isValidationFailed()
isValidationFailed
in class javax.faces.context.FacesContextWrapper
public void addMessage(java.lang.String clientId, javax.faces.application.FacesMessage message)
addMessage
in class javax.faces.context.FacesContextWrapper
public java.util.Iterator<java.lang.String> getClientIdsWithMessages()
getClientIdsWithMessages
in class javax.faces.context.FacesContextWrapper
public javax.faces.application.FacesMessage.Severity getMaximumSeverity()
getMaximumSeverity
in class javax.faces.context.FacesContextWrapper
public java.util.Iterator<javax.faces.application.FacesMessage> getMessages()
getMessages
in class javax.faces.context.FacesContextWrapper
public java.util.List<javax.faces.application.FacesMessage> getMessageList()
getMessageList
in class javax.faces.context.FacesContextWrapper
public java.util.Iterator<javax.faces.application.FacesMessage> getMessages(java.lang.String clientId)
getMessages
in class javax.faces.context.FacesContextWrapper
public java.util.List<javax.faces.application.FacesMessage> getMessageList(java.lang.String clientId)
getMessageList
in class javax.faces.context.FacesContextWrapper
public static FlowFacesContext newInstance(RequestContext context, javax.faces.lifecycle.Lifecycle lifecycle)