Class JsfView
java.lang.Object
org.springframework.faces.webflow.JsfView
- All Implemented Interfaces:
org.springframework.webflow.execution.View
JSF-specific
View implementation.- Author:
- Jeremy Grelle, Phillip Webb
-
Field Summary
FieldsFields inherited from interface org.springframework.webflow.execution.View
RENDER_FRAGMENTS_ATTRIBUTE, USER_EVENT_STATE_ATTRIBUTE -
Constructor Summary
ConstructorsConstructorDescriptionJsfView(jakarta.faces.component.UIViewRoot viewRoot, jakarta.faces.lifecycle.Lifecycle facesLifecycle, org.springframework.webflow.execution.RequestContext context) Creates a new JSF view. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.webflow.execution.Eventjakarta.faces.component.UIViewRootReturns the underlying view root.booleanvoidExecutes postback-processing portions of the standard JSF lifecycle including APPLY_REQUEST_VALUES through INVOKE_APPLICATION.voidrender()Performs the standard duties of the JSF RENDER_RESPONSE phase.voidUpdates the component state stored in View scope so that it remains in sync with the updated flow execution snapshotvoidsetViewRoot(jakarta.faces.component.UIViewRoot viewRoot) toString()boolean
-
Field Details
-
EVENT_KEY
- See Also:
-
-
Constructor Details
-
JsfView
public JsfView(jakarta.faces.component.UIViewRoot viewRoot, jakarta.faces.lifecycle.Lifecycle facesLifecycle, org.springframework.webflow.execution.RequestContext context) Creates a new JSF view.- Parameters:
viewRoot- the view rootfacesLifecycle- the flow faces lifecyclecontext- the current flow request
-
-
Method Details
-
getViewRoot
public jakarta.faces.component.UIViewRoot getViewRoot()Returns the underlying view root.- Returns:
- the view root
-
setViewRoot
public void setViewRoot(jakarta.faces.component.UIViewRoot viewRoot) -
render
Performs the standard duties of the JSF RENDER_RESPONSE phase.- Specified by:
renderin interfaceorg.springframework.webflow.execution.View- Throws:
IOException
-
userEventQueued
public boolean userEventQueued()- Specified by:
userEventQueuedin interfaceorg.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:
processUserEventin interfaceorg.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:
saveStatein interfaceorg.springframework.webflow.execution.View
-
getUserEventState
- Specified by:
getUserEventStatein interfaceorg.springframework.webflow.execution.View
-
hasFlowEvent
public boolean hasFlowEvent()- Specified by:
hasFlowEventin interfaceorg.springframework.webflow.execution.View
-
getFlowEvent
public org.springframework.webflow.execution.Event getFlowEvent()- Specified by:
getFlowEventin interfaceorg.springframework.webflow.execution.View
-
toString
-