org.apache.myfaces.custom.conversation
Class UIStartConversation

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UICommand
              extended by org.apache.myfaces.custom.conversation.AbstractConversationComponent
                  extended by org.apache.myfaces.custom.conversation.UIStartConversation
All Implemented Interfaces:
javax.faces.component.ActionSource, javax.faces.component.ActionSource2, javax.faces.component.StateHolder

public class UIStartConversation
extends AbstractConversationComponent

start a conversation

Author:
imario@apache.org

Nested Class Summary
static class UIStartConversation.ConversationStartAction
           
 
Field Summary
static java.lang.String COMPONENT_TYPE
           
 
Fields inherited from class org.apache.myfaces.custom.conversation.AbstractConversationComponent
COMPONENT_FAMILY
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Constructor Summary
UIStartConversation()
           
 
Method Summary
 void encodeEnd(javax.faces.context.FacesContext context)
           
 java.lang.Boolean getPersistence()
          true|false - if this conversation requires a persistence manager.
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setPersistence(java.lang.Boolean persistence)
           
protected  void setupConversationSystem(javax.faces.context.FacesContext context)
           
protected  boolean toBoolean(java.lang.Boolean bool)
           
 
Methods inherited from class org.apache.myfaces.custom.conversation.AbstractConversationComponent
getFamily, getName, setName
 
Methods inherited from class javax.faces.component.UICommand
addActionListener, broadcast, getAction, getActionExpression, getActionListener, getActionListeners, getValue, isImmediate, queueEvent, removeActionListener, setAction, setActionExpression, setActionListener, setImmediate, setValue
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, decode, encodeBegin, encodeChildren, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId, getValueExpression, setValueExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_TYPE

public static final java.lang.String COMPONENT_TYPE
See Also:
Constant Field Values
Constructor Detail

UIStartConversation

public UIStartConversation()
Method Detail

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext context)
               throws java.io.IOException
Overrides:
encodeEnd in class javax.faces.component.UIComponentBase
Throws:
java.io.IOException

toBoolean

protected boolean toBoolean(java.lang.Boolean bool)

setupConversationSystem

protected void setupConversationSystem(javax.faces.context.FacesContext context)

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object state)
Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class AbstractConversationComponent

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)
Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class AbstractConversationComponent

getPersistence

public java.lang.Boolean getPersistence()
true|false - if this conversation requires a persistence manager. Default: false

Returns:

setPersistence

public void setPersistence(java.lang.Boolean persistence)


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.