public class MessageFactory extends Object
supported filters: package
and
protection
.
Modifier and Type | Method and Description |
---|---|
protected static javax.faces.application.Application |
getApplication() |
protected static ClassLoader |
getCurrentLoader(Class fallbackClass) |
static Object |
getLabel(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Returns the
label property from the specified
component. |
static javax.faces.application.FacesMessage |
getMessage(javax.faces.context.FacesContext context,
String messageId,
javax.faces.application.FacesMessage.Severity severity,
Object... params) |
static javax.faces.application.FacesMessage |
getMessage(javax.faces.context.FacesContext context,
String messageId,
Object... params)
Creates and returns a FacesMessage for the specified Locale.
|
static javax.faces.application.FacesMessage |
getMessage(Locale locale,
String messageId,
javax.faces.application.FacesMessage.Severity severity,
Object... params) |
static javax.faces.application.FacesMessage |
getMessage(Locale locale,
String messageId,
Object... params)
Creates and returns a FacesMessage for the specified Locale.
|
static javax.faces.application.FacesMessage |
getMessage(String messageId,
javax.faces.application.FacesMessage.Severity severity,
Object... params) |
static javax.faces.application.FacesMessage |
getMessage(String messageId,
Object... params)
This version of getMessage() is used for localizing implementation
specific messages.
|
public static javax.faces.application.FacesMessage getMessage(String messageId, javax.faces.application.FacesMessage.Severity severity, Object... params)
severity
- set a custom severitygetMessage(String, Object...)
public static javax.faces.application.FacesMessage getMessage(Locale locale, String messageId, javax.faces.application.FacesMessage.Severity severity, Object... params)
severity
- set a custom severitygetMessage(Locale, String, Object...)
public static javax.faces.application.FacesMessage getMessage(javax.faces.context.FacesContext context, String messageId, javax.faces.application.FacesMessage.Severity severity, Object... params)
severity
- set a custom severitygetMessage(FacesContext, String, Object...)
public static javax.faces.application.FacesMessage getMessage(String messageId, Object... params)
This version of getMessage() is used for localizing implementation specific messages.
messageId
- - the key of the message in the resource bundleparams
- - substittion parametersFacesMessage
with the severity
of FacesMessage.SEVERITY_ERRORpublic static javax.faces.application.FacesMessage getMessage(Locale locale, String messageId, Object... params)
Creates and returns a FacesMessage for the specified Locale.
locale
- - the target Locale
messageId
- - the key of the message in the resource bundleparams
- - substittion parametersFacesMessage
with the severity
of FacesMessage.SEVERITY_ERRORpublic static javax.faces.application.FacesMessage getMessage(javax.faces.context.FacesContext context, String messageId, Object... params)
Creates and returns a FacesMessage for the specified Locale.
context
- - the FacesContext
for the current requestmessageId
- - the key of the message in the resource bundleparams
- - substittion parametersFacesMessage
with the severity
of FacesMessage.SEVERITY_ERRORpublic static Object getLabel(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
Returns the label
property from the specified
component.
context
- - the FacesContext
for the current requestcomponent
- - the component of interestprotected static javax.faces.application.Application getApplication()
protected static ClassLoader getCurrentLoader(Class fallbackClass)
Copyright © 2010–2019 JBoss by Red Hat. All rights reserved.