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

java.lang.Object
  extended by org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.DefaultWindowHandler
      extended by org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.ClientSideWindowHandler
All Implemented Interfaces:
Serializable, LifecycleAwareWindowHandler, WindowHandler

@Alternative
@ApplicationScoped
public class ClientSideWindowHandler
extends DefaultWindowHandler
implements LifecycleAwareWindowHandler

WindowHandler which uses JavaScript to store the windowId.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.DefaultWindowHandler
useWindowAwareUrlEncoding
 
Constructor Summary
protected ClientSideWindowHandler()
           
protected ClientSideWindowHandler(WindowContextConfig config)
           
 
Method Summary
 void beforeLifecycleExecute(javax.faces.context.FacesContext facesContext)
          Is called before the execute portion of the JSF lifecycle starts.
 String restoreWindowId(javax.faces.context.ExternalContext externalContext)
          Allows to restore the window-id depending on the window-strategy supported by the implementation
 
Methods inherited from class org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.DefaultWindowHandler
addWindowIdIfNecessary, createWindowId, encodeURL, getCurrentWindowId, sendRedirect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.spi.WindowHandler
createWindowId, encodeURL, sendRedirect
 

Constructor Detail

ClientSideWindowHandler

protected ClientSideWindowHandler()

ClientSideWindowHandler

@Inject
protected ClientSideWindowHandler(WindowContextConfig config)
Method Detail

restoreWindowId

public String restoreWindowId(javax.faces.context.ExternalContext externalContext)
Allows to restore the window-id depending on the window-strategy supported by the implementation

Specified by:
restoreWindowId in interface WindowHandler
Overrides:
restoreWindowId in class DefaultWindowHandler
Parameters:
externalContext - current external-context
Returns:
extracted window-id, null otherwise

beforeLifecycleExecute

public void beforeLifecycleExecute(javax.faces.context.FacesContext facesContext)
Is called before the execute portion of the JSF lifecycle starts. If this method sets responseComplete() to true, the lifecycle won't be started.

Specified by:
beforeLifecycleExecute in interface LifecycleAwareWindowHandler
Parameters:
facesContext - current faces-context


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