supported filters: package and protection.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | MessageFactory.
This class overrides FacesMessage to provide the evaluation of binding expressions in addition to Strings. |
| Modifier and Type | Field and Description |
|---|---|
| private static final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected static Application | |
| protected static ClassLoader | |
| public static Object | Returns: the label, if any, of the component- the context, UIComponent FacesContext for the current request- the component of interest component)
Returns the |
| public static FacesMessage | |
| public static FacesMessage | getMessage(Locale locale, String messageId, FacesMessage.
set a custom severity severity,
|
| public static FacesMessage | getMessage(FacesContext context, String messageId, FacesMessage.
set a custom severity severity,
|
| public static FacesMessage | Returns: a localizedFacesMessage with the severity of FacesMessage.SEVERITY_ERROR- the key of the message in the resource bundle messageId, Object... - substittion parameters params)This version of getMessage() is used for localizing implementation specific messages. |
| public static FacesMessage | Returns: a localizedFacesMessage with the severity of FacesMessage.SEVERITY_ERROR- the target locale, String Locale- the key of the message in the resource bundle messageId, Object... - substittion parameters params)Creates and returns a FacesMessage for the specified Locale. |
| public static FacesMessage | Returns: a localizedFacesMessage with the severity of FacesMessage.SEVERITY_ERROR- the context, String FacesContext for the current request- the key of the message in the resource bundle messageId, Object... - substittion parameters params)Creates and returns a FacesMessage for the specified Locale. |
| MOJARRA_RESOURCE_BASENAME | back to summary |
|---|---|
| private static final String MOJARRA_RESOURCE_BASENAME | |
| MessageFactory | back to summary |
|---|---|
| private MessageFactory() | |
| getApplication | back to summary |
|---|---|
| protected static Application getApplication() | |
| getCurrentLoader | back to summary |
|---|---|
| protected static ClassLoader getCurrentLoader(Class<?> fallbackClass) | |
| getLabel | back to summary |
|---|---|
| public static Object getLabel(FacesContext context, UIComponent component)
Returns the
| |
| getMessage | back to summary |
|---|---|
public static FacesMessage getMessage(String messageId, FacesMessage.
| |
| getMessage | back to summary |
|---|---|
public static FacesMessage getMessage(Locale locale, String messageId, FacesMessage.
| |
| getMessage | back to summary |
|---|---|
public static FacesMessage getMessage(FacesContext context, String messageId, FacesMessage.
| |
| getMessage | back to summary |
|---|---|
| public static FacesMessage getMessage(String messageId, Object... params) This version of getMessage() is used for localizing implementation specific messages.
| |
| getMessage | back to summary |
|---|---|
| public static FacesMessage getMessage(Locale locale, String messageId, Object... params) Creates and returns a FacesMessage for the specified Locale.
| |
| getMessage | back to summary |
|---|---|
| public static FacesMessage getMessage(FacesContext context, String messageId, Object... params) Creates and returns a FacesMessage for the specified Locale.
| |
#{bundle.userLabel} "bundle" may not be available
until the page is rendered. The "late" binding evaluation in getSummary and getDetail allow
the expression to be evaluated when that property is available.
| Modifier and Type | Field and Description |
|---|---|
| private final Locale | |
| private final Object[] | |
| private Object[] | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv | BindingFacesMessage(Locale locale, String messageFormat, String detailMessageFormat, Object[] parameters)
|
| Modifier and Type | Method and Description |
|---|---|
| public String | getDetail()
Overrides jakarta. Return the localized detail text. |
| private String | |
| public String | getSummary()
Overrides jakarta. Return the localized summary text. |
| private void |
| locale | back to summary |
|---|---|
| private final Locale locale | |
| parameters | back to summary |
|---|---|
| private final Object[] parameters | |
| resolvedParameters | back to summary |
|---|---|
| private Object[] resolvedParameters | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides jakarta. | |
| BindingFacesMessage | back to summary |
|---|---|
| pack-priv BindingFacesMessage(Locale locale, String messageFormat, String detailMessageFormat, Object[] parameters) | |
| getDetail | back to summary |
|---|---|
| public String getDetail() Overrides jakarta. Doc from jakarta. Return the localized detail text. If no localized detail text has been defined for this message, return the localized summary text instead. | |
| getFormattedString | back to summary |
|---|---|
| private String getFormattedString(String msgtext, Object[] params) | |
| getSummary | back to summary |
|---|---|
| public String getSummary() Overrides jakarta. Doc from jakarta. Return the localized summary text. | |
| resolveBindings | back to summary |
|---|---|
| private void resolveBindings() | |