|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.extensions.cdi.jsf.impl.util.JsfUtils
@Typed public abstract class JsfUtils
keep in sync with extval!
Field Summary | |
---|---|
static String |
FACES_CONTEXT_MANUAL_WRAPPER_KEY
|
Method Summary | ||
---|---|---|
static String |
addParameters(javax.faces.context.ExternalContext externalContext,
String url,
boolean addRequestParameter,
boolean addPageParameter,
boolean encodeValues)
Adds the current request-parameters to the given url |
|
static String |
encodeURLParameterValue(String value,
javax.faces.context.ExternalContext externalContext)
Encodes the given value using URLEncoder.encode() with the charset returned from ExternalContext.getResponseCharacterEncoding(). |
|
static ResourceBundle |
getCustomFacesMessageBundle(Locale locale)
Exposes the (optional) custom message-bundle configured in the faces-config for the given Locale |
|
static ResourceBundle |
getDefaultFacesMessageBundle(Locale locale)
Exposes the default message-bundle of jsf for the given Locale |
|
static Set<RequestParameter> |
getParameters(javax.faces.context.ExternalContext externalContext,
boolean filterViewState,
boolean addRequestParameter,
boolean addPageParameter)
Exposes all request-parameters (including or excluding the view-state) |
|
static
|
getValueOfExpression(String expression,
Class<T> targetType)
|
|
static String |
getValueOfExpressionAsString(String expression)
|
|
static void |
registerPhaseListener(javax.faces.event.PhaseListener phaseListener)
Adds the given PhaseListener to the application |
|
static void |
resetCaches()
Resets all caches of the current request |
|
static void |
resetConversationCache()
Resets the conversation cache of the current request |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String FACES_CONTEXT_MANUAL_WRAPPER_KEY
Method Detail |
---|
public static void resetConversationCache()
public static void resetCaches()
public static void registerPhaseListener(javax.faces.event.PhaseListener phaseListener)
PhaseListener
to the application
phaseListener
- current phase-listenerpublic static ResourceBundle getDefaultFacesMessageBundle(Locale locale)
Locale
locale
- current local
public static ResourceBundle getCustomFacesMessageBundle(Locale locale)
Locale
locale
- current local
public static String encodeURLParameterValue(String value, javax.faces.context.ExternalContext externalContext)
value
- value which should be encodedexternalContext
- current external-context
public static String addParameters(javax.faces.context.ExternalContext externalContext, String url, boolean addRequestParameter, boolean addPageParameter, boolean encodeValues)
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 ViewParameter
encodeValues
- flag which indicates if parameter values should be encoded or not
public static Set<RequestParameter> getParameters(javax.faces.context.ExternalContext externalContext, boolean filterViewState, boolean addRequestParameter, boolean addPageParameter)
externalContext
- current external-contextfilterViewState
- flag which indicates if the view-state should be added or notaddRequestParameter
- flag which indicates if the request params should be added or notaddPageParameter
- flag which indicates if the view params should be added or not ViewParameter
public static <T> T getValueOfExpression(String expression, Class<T> targetType)
public static String getValueOfExpressionAsString(String expression)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |