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.

Author:
Mark Struberg, Jakob Korherr
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 encodeURL(String url)
           
 String restoreWindowId(javax.faces.context.ExternalContext externalContext)
           
 
Methods inherited from class org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.DefaultWindowHandler
addWindowIdIfNecessary, createWindowId, 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, sendRedirect
 

Constructor Detail

ClientSideWindowHandler

protected ClientSideWindowHandler()

ClientSideWindowHandler

@Inject
protected ClientSideWindowHandler(WindowContextConfig config)
Method Detail

encodeURL

public String encodeURL(String url)
Specified by:
encodeURL in interface WindowHandler
Overrides:
encodeURL in class DefaultWindowHandler

restoreWindowId

public String restoreWindowId(javax.faces.context.ExternalContext externalContext)
Specified by:
restoreWindowId in interface WindowHandler
Overrides:
restoreWindowId in class DefaultWindowHandler

beforeLifecycleExecute

public void beforeLifecycleExecute(javax.faces.context.FacesContext facesContext)
Description copied from interface: LifecycleAwareWindowHandler
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


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