java.lang.Object
com.sun.faces.ext.component.MessageFactory
-
Method Summary
Modifier and TypeMethodDescriptionstatic Object
getLabel
(FacesContext context, UIComponent component) Returns thelabel
property from the specified component.static FacesMessage
getMessage
(FacesContext context, String messageId, Object... params) Creates and returns a FacesMessage for the specified Locale.
-
Method Details
-
getMessage
Creates and returns a FacesMessage for the specified Locale.
- Parameters:
context
- - theFacesContext
for the current requestmessageId
- - the key of the message in the resource bundleparams
- - substittion parameters- Returns:
- a localized
FacesMessage
with the severity of FacesMessage.SEVERITY_ERROR
-
getLabel
Returns the
label
property from the specified component.- Parameters:
context
- - theFacesContext
for the current requestcomponent
- - the component of interest- Returns:
- the label, if any, of the component
-