Class CODIClientSideWindow
- java.lang.Object
-
- javax.faces.lifecycle.ClientWindow
-
- org.apache.myfaces.lifecycle.clientwindow.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
Constructors Modifier Constructor Description protectedCODIClientSideWindow(TokenGenerator clientWindowTokenGenerator, WindowContextConfig windowContextConfig, ClientConfig clientConfig)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringaddParameters(ExternalContext externalContext, String url, boolean addRequestParameter, boolean addPageParameter, boolean encodeValues)Adds the current request-parameters to the given urlStringcalculateWindowIdFromPost(FacesContext context)protected StringcreateWindowId(FacesContext context)voiddecode(FacesContext facesContext)StringgetId()Map<String,String>getQueryURLParameters(FacesContext context)voidsetId(String id)-
Methods inherited from class javax.faces.lifecycle.ClientWindow
disableClientWindowRenderMode, enableClientWindowRenderMode, isClientWindowRenderModeEnabled
-
-
-
-
Constructor Detail
-
CODIClientSideWindow
protected CODIClientSideWindow(TokenGenerator clientWindowTokenGenerator, WindowContextConfig windowContextConfig, ClientConfig clientConfig)
-
-
Method Detail
-
decode
public void decode(FacesContext facesContext)
- Specified by:
decodein classClientWindow
-
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-contexturl- current urladdRequestParameter- flag which indicates if the request params should be added or notaddPageParameter- flag which indicates if the view params should be added or not. See ViewParameterencodeValues- 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:
getIdin classClientWindow
-
setId
public void setId(String id)
-
getQueryURLParameters
public Map<String,String> getQueryURLParameters(FacesContext context)
- Specified by:
getQueryURLParametersin classClientWindow
-
-