|
||||||||||
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
javax.faces.component.UICommand
org.apache.myfaces.custom.conversation.AbstractConversationComponent
org.apache.myfaces.custom.conversation.UIEnsureConversation
public class UIEnsureConversation
Ensures a named conversation is running
check if a conversation is active.
The way this is done here is sub-optimal, once we are on jsf 1.2 it should be possible to check this before ANY rendering - and maybe to invoke a navigation then
Field Summary | |
---|---|
static java.lang.String |
COMPONENT_TYPE
|
Fields inherited from class org.apache.myfaces.custom.conversation.AbstractConversationComponent |
---|
COMPONENT_FAMILY |
Constructor Summary | |
---|---|
UIEnsureConversation()
|
Method Summary | |
---|---|
protected void |
checkConversation(javax.faces.context.FacesContext context,
java.lang.String name)
|
void |
decode(javax.faces.context.FacesContext context)
|
void |
encodeBegin(javax.faces.context.FacesContext context)
|
java.lang.Boolean |
getPreCheck()
Delegate the check to the action method at all. |
java.lang.String |
getRedirectTo()
redirect to the given view if the conversation is not running |
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setPreCheck(java.lang.Boolean preCheck)
|
void |
setRedirectTo(java.lang.String redirectTo)
|
Methods inherited from class org.apache.myfaces.custom.conversation.AbstractConversationComponent |
---|
getFamily, getName, setName |
Methods inherited from class javax.faces.component.UICommand |
---|
addActionListener, broadcast, getAction, getActionListener, getActionListeners, getValue, isImmediate, queueEvent, removeActionListener, setAction, setActionListener, setImmediate, setValue |
Methods inherited from class javax.faces.component.UIComponentBase |
---|
addFacesListener, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COMPONENT_TYPE
Constructor Detail |
---|
public UIEnsureConversation()
Method Detail |
---|
public void encodeBegin(javax.faces.context.FacesContext context) throws java.io.IOException
encodeBegin
in class javax.faces.component.UIComponentBase
java.io.IOException
public void decode(javax.faces.context.FacesContext context)
decode
in class javax.faces.component.UIComponentBase
public void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class AbstractConversationComponent
public java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState
in interface javax.faces.component.StateHolder
saveState
in class AbstractConversationComponent
protected void checkConversation(javax.faces.context.FacesContext context, java.lang.String name) throws java.io.IOException
java.io.IOException
public java.lang.String getRedirectTo()
public void setRedirectTo(java.lang.String redirectTo)
public java.lang.Boolean getPreCheck()
public void setPreCheck(java.lang.Boolean preCheck)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |