|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.icesoft.faces.webapp.xmlhttp.PersistentFacesState
The PersistentFacesState class allows the 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.
| Method Summary | |
javax.faces.context.FacesContext |
getFacesContext()
Return the FacesContext associated with this instance. |
static PersistentFacesState |
getInstance()
Obtain the PersistentFacesState instance appropriate for the
current context. |
void |
navigateTo(java.lang.String outcome)
Redirect browser to a different page. |
void |
redirectTo(java.lang.String uri)
Redirect browser to a different URI. |
void |
render()
Render the view associated with this PersistentFacesState. |
void |
renderLater()
Render the view associated with this PersistentFacesState. |
java.lang.String |
toString()
Return a String representation of this
PersistentFacesState instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public static PersistentFacesState getInstance()
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
render() requests.
public javax.faces.context.FacesContext getFacesContext()
public void render()
throws RenderingException
PersistentFacesState.
The user's browser will be immediately updated with any changes.
RenderingExceptionpublic void renderLater()
PersistentFacesState.
This takes place on a separate thread to guard against potential
deadlock from calling render() during view rendering.
public void redirectTo(java.lang.String uri)
uri - the relative or absolute URI.public void navigateTo(java.lang.String outcome)
outcome - the 'from-outcome' field in the navigation rule.public java.lang.String toString()
Return a String representation of this
PersistentFacesState instance.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||