org.apache.myfaces.lifecycle
Class CODIClientSideWindow

java.lang.Object
  extended by javax.faces.lifecycle.ClientWindow
      extended by org.apache.myfaces.lifecycle.CODIClientSideWindow

public class CODIClientSideWindow
extends ClientWindow

Author:
lu4242

Field Summary
 
Fields inherited from class javax.faces.lifecycle.ClientWindow
CLIENT_WINDOW_MODE_PARAM_NAME
 
Constructor Summary
protected CODIClientSideWindow(org.apache.myfaces.lifecycle.TokenGenerator clientWindowTokenGenerator, WindowContextConfig windowContextConfig, ClientConfig clientConfig)
           
 
Method Summary
static String addParameters(ExternalContext externalContext, String url, boolean addRequestParameter, boolean addPageParameter, boolean encodeValues)
          Adds the current request-parameters to the given url
 String calculateWindowIdFromPost(FacesContext context)
           
protected  String createWindowId(FacesContext context)
           
 void decode(FacesContext facesContext)
          
 String getId()
           
 Map<String,String> getQueryURLParameters(FacesContext context)
           
 void setId(String id)
           
 
Methods inherited from class javax.faces.lifecycle.ClientWindow
disableClientWindowRenderMode, enableClientWindowRenderMode, isClientWindowRenderModeEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CODIClientSideWindow

protected CODIClientSideWindow(org.apache.myfaces.lifecycle.TokenGenerator clientWindowTokenGenerator,
                               WindowContextConfig windowContextConfig,
                               ClientConfig clientConfig)
Method Detail

decode

public void decode(FacesContext facesContext)

Specified by:
decode in class ClientWindow

calculateWindowIdFromPost

public String calculateWindowIdFromPost(FacesContext context)

addParameters

public static String addParameters(ExternalContext externalContext,
                                   String url,
                                   boolean addRequestParameter,
                                   boolean addPageParameter,
                                   boolean encodeValues)
Adds the current request-parameters to the given url

Parameters:
externalContext - current external-context
url - current url
addRequestParameter - flag which indicates if the request params should be added or not
addPageParameter - flag which indicates if the view params should be added or not ViewParameter
encodeValues - flag which indicates if parameter values should be encoded or not
Returns:
url with request-parameters

createWindowId

protected String createWindowId(FacesContext context)

getId

public String getId()
Specified by:
getId in class ClientWindow

setId

public void setId(String id)

getQueryURLParameters

public Map<String,String> getQueryURLParameters(FacesContext context)
Specified by:
getQueryURLParameters in class ClientWindow


Copyright © 2014 The Apache Software Foundation. All rights reserved.