The
PersistentFacesState class allows an application to initiate
rendering asynchronously and independently of user interaction.
Typical use is to obtain a
PersistentFacesState instance in a managed
bean constructor and then use that instance for any relevant rendering
requests.
Applications should obtain the PersistentFacesState instance
using the public static getInstance() method. The recommended approach is to
call this method from a mangaged-bean constructor and use the instance
obtained for any
PersistentFacesState.render requests.
Obtain the PersistentFacesState instance appropriate for the
current context. This is managed through InheritableThreadLocal
variables. The recommended approach is to call this method from a
mangaged-bean constructor and use the instance obtained for any
PersistentFacesState.render requests.
the PersistentFacesState appropriate for the calling Thread
Obtain the
PersistentFacesState instance keyed by viewNumber from
the specified sessionMap. This API is not intended for application use.
Parameters: sessionMap - session-scope parameters the PersistentFacesState
Redirect browser to a different page. The redirect page is selected based
on the navigation rule. The user's browser will be immediately redirected
without any user interaction required.
Parameters: outcome - the 'from-outcome' field in the navigation rule.
Redirect browser to a different URI. The user's browser will be
immediately redirected without any user interaction required.
Parameters: uri - the relative or absolute URI.
Threads that used to server request/response cycles in an application
server are generally pulled from a pool. Just before the thread is done
completing the cycle, we should clear any local instance variables to
ensure that they are not hanging on to any session references, otherwise
the session and their resources are not released.
Render the view associated with this PersistentFacesState.
This takes place on a separate thread to guard against potential deadlock
from calling
PersistentFacesState.render during view rendering.