org.apache.myfaces.extensions.cdi.jsf.impl.util
Class JsfUtils
java.lang.Object
org.apache.myfaces.extensions.cdi.jsf.impl.util.JsfUtils
public class JsfUtils
- extends Object
keep in sync with extval!
- Author:
- Gerhard Petracek
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsfUtils
public JsfUtils()
resetConversationCache
public static void resetConversationCache()
resetCaches
public static void resetCaches()
registerPhaseListener
public static void registerPhaseListener(javax.faces.event.PhaseListener phaseListener)
getDefaultFacesMessageBundle
public static ResourceBundle getDefaultFacesMessageBundle(Locale locale)
getCustomFacesMessageBundle
public static ResourceBundle getCustomFacesMessageBundle(Locale locale)
getCustomImplementation
@Deprecated
public static <T> T getCustomImplementation(Class<T> targetType)
- Deprecated.
getWebXmlParameter
public static String getWebXmlParameter(String parameterKey)
encodeURLParameterValue
public static 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
- externalContext
-
- Returns:
addRequestParameter
public static String addRequestParameter(javax.faces.context.ExternalContext externalContext,
String url)
getRequestParameters
public static Set<RequestParameter> getRequestParameters(javax.faces.context.ExternalContext externalContext,
boolean filterViewState)
Copyright © 2010 The Apache Software Foundation. All Rights Reserved.