java.lang.Object
com.sun.faces.util.MessageFactory
supported filters: package and protection.
-
Method Summary
Modifier and TypeMethodDescriptionprotected static Applicationprotected static ClassLoadergetCurrentLoader(Class<?> fallbackClass) static ObjectgetLabel(FacesContext context, UIComponent component) Returns thelabelproperty from the specified component.static FacesMessagegetMessage(FacesContext context, String messageId, FacesMessage.Severity severity, Object... params) static FacesMessagegetMessage(FacesContext context, String messageId, Object... params) Creates and returns a FacesMessage for the specified Locale.static FacesMessagegetMessage(String messageId, FacesMessage.Severity severity, Object... params) static FacesMessagegetMessage(String messageId, Object... params) This version of getMessage() is used for localizing implementation specific messages.static FacesMessagegetMessage(Locale locale, String messageId, FacesMessage.Severity severity, Object... params) static FacesMessagegetMessage(Locale locale, String messageId, Object... params) Creates and returns a FacesMessage for the specified Locale.
-
Method Details
-
getMessage
public static FacesMessage getMessage(String messageId, FacesMessage.Severity severity, Object... params) - Parameters:
severity- set a custom severity- See Also:
-
getMessage
public static FacesMessage getMessage(Locale locale, String messageId, FacesMessage.Severity severity, Object... params) - Parameters:
severity- set a custom severity- See Also:
-
getMessage
public static FacesMessage getMessage(FacesContext context, String messageId, FacesMessage.Severity severity, Object... params) - Parameters:
severity- set a custom severity- See Also:
-
getMessage
This version of getMessage() is used for localizing implementation specific messages.
- Parameters:
messageId- - the key of the message in the resource bundleparams- - substittion parameters- Returns:
- a localized
FacesMessagewith the severity of FacesMessage.SEVERITY_ERROR
-
getMessage
Creates and returns a FacesMessage for the specified Locale.
- Parameters:
locale- - the targetLocalemessageId- - the key of the message in the resource bundleparams- - substittion parameters- Returns:
- a localized
FacesMessagewith the severity of FacesMessage.SEVERITY_ERROR
-
getMessage
Creates and returns a FacesMessage for the specified Locale.
- Parameters:
context- - theFacesContextfor the current requestmessageId- - the key of the message in the resource bundleparams- - substittion parameters- Returns:
- a localized
FacesMessagewith the severity of FacesMessage.SEVERITY_ERROR
-
getLabel
Returns the
labelproperty from the specified component.- Parameters:
context- - theFacesContextfor the current requestcomponent- - the component of interest- Returns:
- the label, if any, of the component
-
getApplication
-
getCurrentLoader
-