org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation
Class ClientSideWindowHandler
java.lang.Object
org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.DefaultWindowHandler
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientSideWindowHandler
protected ClientSideWindowHandler()
ClientSideWindowHandler
@Inject
protected ClientSideWindowHandler(WindowContextConfig config)
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-2011 The Apache Software Foundation. All Rights Reserved.