|
||||||||||
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!
Method Summary | |
---|---|
static String |
addRequestParameter(javax.faces.context.ExternalContext externalContext,
String url)
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> |
getRequestParameters(javax.faces.context.ExternalContext externalContext,
boolean filterViewState)
Exposes all request-parameters (including or excluding the view-state) |
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 |
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 addRequestParameter(javax.faces.context.ExternalContext externalContext, String url)
externalContext
- current external-contexturl
- current url
public static Set<RequestParameter> getRequestParameters(javax.faces.context.ExternalContext externalContext, boolean filterViewState)
externalContext
- current external-contextfilterViewState
- flag which indicates if the view-state should be added or not
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |