|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.core.gui.util.FacesContextUtility
public abstract class FacesContextUtility
A set of utility methods for working with the current JSF FacesContext.
| Constructor Summary | |
|---|---|
FacesContextUtility()
|
|
| Method Summary | ||
|---|---|---|
static void |
addMessage(javax.faces.application.FacesMessage.Severity severity,
String summary)
Adds a message to the global context so it will be displayed via <h:messages>. |
|
static void |
addMessage(javax.faces.application.FacesMessage.Severity severity,
String summary,
String detail)
Adds a message to the global context so it will be displayed via <h:messages>. |
|
static void |
addMessage(javax.faces.application.FacesMessage.Severity severity,
String summary,
Throwable t)
Adds a message to the global context so it will be displayed via <h:messages>. |
|
static void |
clearMessages()
|
|
static void |
clearMessages(String clientId)
|
|
static
|
getBean(Class<T> type)
|
|
static javax.faces.context.FacesContext |
getFacesContext()
|
|
static
|
getManagedBean(Class<T> type)
|
|
static String |
getOptionalRequestParameter(String paramName)
|
|
static
|
getOptionalRequestParameter(String paramName,
Class<T> type)
|
|
static
|
getOptionalRequestParameter(String paramName,
Class<T> type,
T defaultValue)
|
|
static String |
getOptionalRequestParameter(String paramName,
String defaultValue)
|
|
static javax.servlet.http.HttpServletRequest |
getRequest()
Return the current request. |
|
static String |
getRequiredRequestParameter(String paramName)
|
|
static
|
getRequiredRequestParameter(String paramName,
Class<T> type)
|
|
static javax.servlet.http.HttpServletResponse |
getResponse()
|
|
static String |
getViewId()
|
|
static
|
removeSessionScopedBean(Class<T> type)
|
|
static void |
setBean(Object object)
|
|
static void |
setManagedBean(Object managedBean)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FacesContextUtility()
| Method Detail |
|---|
@Nullable
public static String getOptionalRequestParameter(@NotNull
String paramName)
@Nullable
public static <T> T getOptionalRequestParameter(@NotNull
String paramName,
Class<T> type)
@Nullable
public static String getOptionalRequestParameter(@NotNull
String paramName,
String defaultValue)
@Nullable
public static <T> T getOptionalRequestParameter(@NotNull
String paramName,
Class<T> type,
T defaultValue)
@NotNull
public static String getRequiredRequestParameter(@NotNull
String paramName)
@NotNull
public static <T> T getRequiredRequestParameter(@NotNull
String paramName,
Class<T> type)
public static javax.servlet.http.HttpServletRequest getRequest()
public static javax.servlet.http.HttpServletResponse getResponse()
public static void addMessage(@NotNull
javax.faces.application.FacesMessage.Severity severity,
@NotNull
String summary)
<h:messages>. The message
will have no detail.
severity - the FacesMessage severity (FacesMessage.SEVERITY_WARN, etc.)summary - localized summary message text
public static void addMessage(@NotNull
javax.faces.application.FacesMessage.Severity severity,
@NotNull
String summary,
@Nullable
Throwable t)
<h:messages>.
severity - the FacesMessage severity (FacesMessage.SEVERITY_WARN, etc.)summary - localized summary message textt - an exception that will be used to construct the detail portion of the message; if null, no detail
will be included in the message
public static void addMessage(@NotNull
javax.faces.application.FacesMessage.Severity severity,
@NotNull
String summary,
@Nullable
String detail)
<h:messages>.
severity - the FacesMessage severity (FacesMessage.SEVERITY_WARN, etc.)summary - localized summary message textdetail - localized detail message text; if null, no detail will be included in the message@NotNull public static javax.faces.context.FacesContext getFacesContext()
public static String getViewId()
public static <T> T getBean(Class<T> type)
public static <T> void removeSessionScopedBean(Class<T> type)
public static <T> T getManagedBean(Class<T> type)
public static void setManagedBean(Object managedBean)
public static void setBean(Object object)
public static void clearMessages()
public static void clearMessages(String clientId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||