|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
org.springframework.webflow.executor.jsf.FlowExecutionKeyStateHolder
public class FlowExecutionKeyStateHolder
This UIComponent instance can be added to the UIViewRoot before rendering so that the
FlowExecution can be properly saved and then restored during the next request's PhaseId.RESTORE_VIEW
phase.
| Field Summary | |
|---|---|
static java.lang.String |
COMPONENT_ID
Immutable id of the flow execution key component for easier lookup later. |
protected org.apache.commons.logging.Log |
logger
Logger, usable by subclasses. |
| Constructor Summary | |
|---|---|
FlowExecutionKeyStateHolder()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getClientId(javax.faces.context.FacesContext context)
|
java.lang.String |
getFamily()
|
java.lang.String |
getFlowExecutionKey()
Returns the flow execution key. |
java.lang.String |
getId()
|
javax.faces.render.Renderer |
getRenderer()
|
protected void |
handleFlowExecutionAccessException(FlowExecutionAccessException e,
javax.faces.context.FacesContext context)
Hook method to handle a thrown flow execution access exception. |
boolean |
isTransient()
|
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
Restore the FlowExecution from the stored FlowExecutionKey |
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
Save the just the current FlowExecutionKey value. |
void |
setFlowExecutionKey(java.lang.String flowExecutionKey)
Sets the tracked flow execution key used to restore the current flow execution during restoreState(FacesContext, Object). |
void |
setId(java.lang.String id)
|
void |
setTransient(boolean transientValue)
|
| Methods inherited from class javax.faces.component.UIComponentBase |
|---|
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setParent, setRendered, setRendererType, setValueBinding |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log logger
public static final java.lang.String COMPONENT_ID
| Constructor Detail |
|---|
public FlowExecutionKeyStateHolder()
| Method Detail |
|---|
public java.lang.String getId()
getId in class javax.faces.component.UIComponentBasepublic void setId(java.lang.String id)
setId in class javax.faces.component.UIComponentBasepublic java.lang.String getFamily()
getFamily in class javax.faces.component.UIComponentpublic javax.faces.render.Renderer getRenderer()
public java.lang.String getFlowExecutionKey()
public void setFlowExecutionKey(java.lang.String flowExecutionKey)
restoreState(FacesContext, Object).
flowExecutionKey - the flow execution keypublic boolean isTransient()
isTransient in interface javax.faces.component.StateHolderisTransient in class javax.faces.component.UIComponentBasepublic void setTransient(boolean transientValue)
setTransient in interface javax.faces.component.StateHoldersetTransient in class javax.faces.component.UIComponentBase
public void restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
restoreState in interface javax.faces.component.StateHolderrestoreState in class javax.faces.component.UIComponentBase
protected void handleFlowExecutionAccessException(FlowExecutionAccessException e,
javax.faces.context.FacesContext context)
e - the flow execution access exceptioncontext - the current faces contextpublic java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState in interface javax.faces.component.StateHoldersaveState in class javax.faces.component.UIComponentBasepublic java.lang.String getClientId(javax.faces.context.FacesContext context)
getClientId in class javax.faces.component.UIComponentBase
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||