spring-faces

org.springframework.faces.webflow
Class JsfView

java.lang.Object
  extended by org.springframework.faces.webflow.JsfView
All Implemented Interfaces:
org.springframework.webflow.execution.View

public class JsfView
extends java.lang.Object
implements org.springframework.webflow.execution.View

JSF-specific View implementation.

Author:
Jeremy Grelle

Field Summary
static java.lang.String EVENT_KEY
           
 
Fields inherited from interface org.springframework.webflow.execution.View
RENDER_FRAGMENTS_ATTRIBUTE, USER_EVENT_STATE_ATTRIBUTE
 
Constructor Summary
JsfView(javax.faces.component.UIViewRoot viewRoot, javax.faces.lifecycle.Lifecycle facesLifecycle, org.springframework.webflow.execution.RequestContext context)
          Creates a new JSF view.
 
Method Summary
 org.springframework.webflow.execution.Event getFlowEvent()
           
 java.io.Serializable getUserEventState()
           
 javax.faces.component.UIViewRoot getViewRoot()
          Returns the underlying view root.
 boolean hasFlowEvent()
           
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EVENT_KEY

public static final java.lang.String EVENT_KEY
See Also:
Constant Field Values
Constructor Detail

JsfView

public JsfView(javax.faces.component.UIViewRoot viewRoot,
               javax.faces.lifecycle.Lifecycle facesLifecycle,
               org.springframework.webflow.execution.RequestContext context)
Creates a new JSF view.

Parameters:
viewRoot - the view root
facesLifecycle - the flow faces lifecycle
context - the current flow request
Method Detail

getViewRoot

public javax.faces.component.UIViewRoot getViewRoot()
Returns the underlying view root.

Returns:
the view root

setViewRoot

public void setViewRoot(javax.faces.component.UIViewRoot viewRoot)

render

public void render()
            throws java.io.IOException
Performs the standard duties of the JSF RENDER_RESPONSE phase.

Specified by:
render in interface org.springframework.webflow.execution.View
Throws:
java.io.IOException

userEventQueued

public boolean userEventQueued()
Specified by:
userEventQueued in interface org.springframework.webflow.execution.View

processUserEvent

public void processUserEvent()
Executes postback-processing portions of the standard JSF lifecycle including APPLY_REQUEST_VALUES through INVOKE_APPLICATION.

Specified by:
processUserEvent in interface org.springframework.webflow.execution.View

saveState

public void saveState()
Updates the component state stored in View scope so that it remains in sync with the updated flow execution snapshot

Specified by:
saveState in interface org.springframework.webflow.execution.View

getUserEventState

public java.io.Serializable getUserEventState()
Specified by:
getUserEventState in interface org.springframework.webflow.execution.View

hasFlowEvent

public boolean hasFlowEvent()
Specified by:
hasFlowEvent in interface org.springframework.webflow.execution.View

getFlowEvent

public org.springframework.webflow.execution.Event getFlowEvent()
Specified by:
getFlowEvent in interface org.springframework.webflow.execution.View

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

spring-faces