Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EVENT_KEY |
RENDER_FRAGMENTS_ATTRIBUTE, USER_EVENT_STATE_ATTRIBUTE
Constructor and Description |
---|
JsfView(javax.faces.component.UIViewRoot viewRoot,
javax.faces.lifecycle.Lifecycle facesLifecycle,
RequestContext context)
Creates a new JSF view.
|
Modifier and Type | Method and Description |
---|---|
Event |
getFlowEvent()
Get the flow event the current state should handle.
|
java.io.Serializable |
getUserEventState()
A memento holding the results of processing a user event.
|
javax.faces.component.UIViewRoot |
getViewRoot()
Returns the underlying view root.
|
boolean |
hasFlowEvent()
True if a call to
View.processUserEvent() raised a flow event the current state should handle. |
void |
processUserEvent()
Executes postback-processing portions of the standard JSF lifecycle including APPLY_REQUEST_VALUES through
INVOKE_APPLICATION.
|
void |
render()
Performs the standard duties of the JSF RENDER_RESPONSE phase.
|
void |
saveState()
Updates the component state stored in View scope so that it remains in sync with the updated flow execution
snapshot
|
void |
setViewRoot(javax.faces.component.UIViewRoot viewRoot) |
java.lang.String |
toString() |
boolean |
userEventQueued()
True if there is a user event queued this view should process.
|
public static final java.lang.String EVENT_KEY
public JsfView(javax.faces.component.UIViewRoot viewRoot, javax.faces.lifecycle.Lifecycle facesLifecycle, RequestContext context)
viewRoot
- the view rootfacesLifecycle
- the flow faces lifecyclecontext
- the current flow requestpublic javax.faces.component.UIViewRoot getViewRoot()
public void setViewRoot(javax.faces.component.UIViewRoot viewRoot)
public void render() throws java.io.IOException
public boolean userEventQueued()
View
userEventQueued
in interface View
public void processUserEvent()
processUserEvent
in interface View
View.hasFlowEvent()
public void saveState()
public java.io.Serializable getUserEventState()
View
getUserEventState
in interface View
View.processUserEvent()
public boolean hasFlowEvent()
View
View.processUserEvent()
raised a flow event the current state should handle. Call
View.getFlowEvent()
to access the Event.hasFlowEvent
in interface View
public Event getFlowEvent()
View
View.hasFlowEvent()
returns
true. Returns null
otherwise.getFlowEvent
in interface View
null
if there is no event for the flow system to handlepublic java.lang.String toString()
toString
in class java.lang.Object