This JSF UI component lets backing beans track the request life cycle and
save their state within the component tree itself. (These two aspects could
be separated with a "saveState" Boolean attribute if we ever need to let
a session-scoped bean track the request life cycle.)
Like the MyFaces x:saveState tag, this passes the bean's state from request
to request without use of session scope. That in turn enables request-thread
functionality such as "what if?" scenarios and multiple active
application views from a single session.
Usage:
<sakaix:flowState bean="#{phaseAwareBean}" />
should be placed in the JSP file before any other bean references are made.
The bean must implement the PhaseAware interface and be serializable.
Any non-transient fields in the bean will be saved and restored from this component.
|