Package org.primefaces.clientwindow
Class PrimeClientWindow
java.lang.Object
javax.faces.lifecycle.ClientWindow
org.primefaces.clientwindow.PrimeClientWindow
public class PrimeClientWindow
extends javax.faces.lifecycle.ClientWindow
-
Field Summary
Fields inherited from class javax.faces.lifecycle.ClientWindow
CLIENT_WINDOW_MODE_PARAM_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringappendParameters(javax.faces.context.ExternalContext externalContext, String url, Map<String, List<String>> parameters) protected StringconstructInitialRedirectUrl(javax.faces.context.FacesContext context) Constructs the URL for the initialRedirect, which equals the current requested URL + the window id candidate.voiddecode(javax.faces.context.FacesContext context) protected StringencodeURLParameterValue(String value, javax.faces.context.ExternalContext externalContext) Encodes the given value using URLEncoder.encode() with the charset returned from ExternalContext.getResponseCharacterEncoding().getId()getQueryURLParameters(javax.faces.context.FacesContext context) Methods inherited from class javax.faces.lifecycle.ClientWindow
disableClientWindowRenderMode, enableClientWindowRenderMode, isClientWindowRenderModeEnabled
-
Constructor Details
-
PrimeClientWindow
public PrimeClientWindow()
-
-
Method Details
-
getQueryURLParameters
- Specified by:
getQueryURLParametersin classjavax.faces.lifecycle.ClientWindow
-
getId
- Specified by:
getIdin classjavax.faces.lifecycle.ClientWindow
-
decode
public void decode(javax.faces.context.FacesContext context) - Specified by:
decodein classjavax.faces.lifecycle.ClientWindow
-
constructInitialRedirectUrl
Constructs the URL for the initialRedirect, which equals the current requested URL + the window id candidate. We cant useViewHandler.getBookmarkableURL(javax.faces.context.FacesContext, java.lang.String, java.util.Map, boolean)as the ViewRoot isn't available yet in theFacesContext. Same applies forExternalContext.encodeRedirectURL(java.lang.String, java.util.Map).- Parameters:
context- TheFacesContext.- Returns:
- The initial-redirect URL.
-
appendParameters
-
encodeURLParameterValue
protected String encodeURLParameterValue(String value, javax.faces.context.ExternalContext externalContext) Encodes the given value using URLEncoder.encode() with the charset returned from ExternalContext.getResponseCharacterEncoding(). This is exactly how the ExternalContext impl encodes URL parameter values.- Parameters:
value- value which should be encodedexternalContext- current external-context- Returns:
- encoded value
-