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
-
-
Constructor Summary
Constructors Constructor Description PrimeClientWindow()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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().StringgetId()Map<String,String>getQueryURLParameters(javax.faces.context.FacesContext context)
-
-
-
Method Detail
-
getQueryURLParameters
public Map<String,String> getQueryURLParameters(javax.faces.context.FacesContext context)
- Specified by:
getQueryURLParametersin classjavax.faces.lifecycle.ClientWindow
-
getId
public String 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
protected String constructInitialRedirectUrl(javax.faces.context.FacesContext context)
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
protected String appendParameters(javax.faces.context.ExternalContext externalContext, String url, Map<String,List<String>> parameters)
-
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
-
-