org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation
Class WindowContextIdHolderComponent

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UIOutput
              extended by org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.WindowContextIdHolderComponent
All Implemented Interfaces:
javax.faces.component.StateHolder, javax.faces.component.ValueHolder

public class WindowContextIdHolderComponent
extends javax.faces.component.UIOutput

Server-side holder for the window-id


Field Summary
 
Fields inherited from class javax.faces.component.UIOutput
COMPONENT_FAMILY, COMPONENT_TYPE
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Constructor Summary
WindowContextIdHolderComponent()
          Default constructor might be invoked by the jsf implementation
WindowContextIdHolderComponent(String windowContextId)
          Constructor which creates the holder for the given window-id
 
Method Summary
 String getWindowContextId()
          Exposes the stored window-id
 void restoreState(javax.faces.context.FacesContext facesContext, Object state)
          
 Object saveState(javax.faces.context.FacesContext facesContext)
          
 
Methods inherited from class javax.faces.component.UIOutput
getConverter, getFamily, getLocalValue, getValue, setConverter, setValue
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, 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, queueEvent, 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
 

Constructor Detail

WindowContextIdHolderComponent

public WindowContextIdHolderComponent()
Default constructor might be invoked by the jsf implementation


WindowContextIdHolderComponent

public WindowContextIdHolderComponent(String windowContextId)
Constructor which creates the holder for the given window-id

Parameters:
windowContextId - current window-id
Method Detail

saveState

public Object saveState(javax.faces.context.FacesContext facesContext)

Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class javax.faces.component.UIOutput

restoreState

public void restoreState(javax.faces.context.FacesContext facesContext,
                         Object state)

Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class javax.faces.component.UIOutput

getWindowContextId

public String getWindowContextId()
Exposes the stored window-id

Returns:
current window-id


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.