public interface ClientWindow
API to interact with the window/browser tab handling. This originally got implemented in Apache MyFaces CODI which was the basis for the respective feature in JSF-2.2. We now orientate us a bit on the JSF-2.2 API for making it easier to provide this feature for JSF-2.0, JSF-2.1 and also JSF-2.2 JSF implementations.
Please not that in JSF-2.2 a javax.faces.lifecycle.ClientWindow
 instance gets created for each and every request, but in DeltaSpike our
 ClientWindow instances are most likely @ApplicationScoped.
 
| Modifier and Type | Method and Description | 
|---|---|
void | 
disableClientWindowRenderMode(javax.faces.context.FacesContext facesContext)
Can be called to disable the window-id for an URL. 
 | 
void | 
enableClientWindowRenderMode(javax.faces.context.FacesContext facesContext)
Can be used to reset window-id rendering for a specific component. 
 | 
Map<String,String> | 
getQueryURLParameters(javax.faces.context.FacesContext facesContext)  | 
String | 
getWindowId(javax.faces.context.FacesContext facesContext)
Extract the windowId for the current request. 
 | 
String | 
interceptRedirect(javax.faces.context.FacesContext facesContext,
                 String url)  | 
boolean | 
isClientWindowRenderModeEnabled(javax.faces.context.FacesContext facesContext)  | 
boolean | 
isInitialRedirectSupported(javax.faces.context.FacesContext facesContext)  | 
String getWindowId(javax.faces.context.FacesContext facesContext)
ClientWindowConfig.ClientWindowRenderMode and
 after consulting ClientWindowConfig we will first send an
 intermediate page if the request is an initial GET request.facesContext - for the requestnull if there is no window assigned.void disableClientWindowRenderMode(javax.faces.context.FacesContext facesContext)
enableClientWindowRenderMode(javax.faces.context.FacesContext)
 after rendering the markup for the current component, if isClientWindowRenderModeEnabled(javax.faces.context.FacesContext)
 returned true before calling this method.void enableClientWindowRenderMode(javax.faces.context.FacesContext facesContext)
boolean isClientWindowRenderModeEnabled(javax.faces.context.FacesContext facesContext)
Map<String,String> getQueryURLParameters(javax.faces.context.FacesContext facesContext)
boolean isInitialRedirectSupported(javax.faces.context.FacesContext facesContext)
Copyright © 2017 The Apache Software Foundation. All rights reserved.