public class I18nImpl extends Object implements I18n, Serializable
| Constructor and Description |
|---|
I18nImpl() |
| Modifier and Type | Method and Description |
|---|---|
javax.faces.application.FacesMessage |
getFacesMessage(javax.faces.context.FacesContext facesContext,
Locale locale,
javax.faces.application.FacesMessage.Severity severity,
String messageId)
Creates (if necessary) and returns an internationalized
FacesMessage based on the specified locale, severity, and messageId. |
javax.faces.application.FacesMessage |
getFacesMessage(javax.faces.context.FacesContext facesContext,
Locale locale,
javax.faces.application.FacesMessage.Severity severity,
String messageId,
Object... arguments)
Creates (if necessary) and returns an internationalized
FacesMessage based on the specified locale, severity, and messageId. |
String |
getMessage(javax.faces.context.FacesContext facesContext,
Locale locale,
String messageId)
Creates (if necessary) and returns an internationalized
String message based on the specified locale and messageId. |
String |
getMessage(javax.faces.context.FacesContext facesContext,
Locale locale,
String messageId,
Object... arguments)
Creates (if necessary) and returns an internationalized
String message based on the specified locale, messageId. |
public javax.faces.application.FacesMessage getFacesMessage(javax.faces.context.FacesContext facesContext,
Locale locale,
javax.faces.application.FacesMessage.Severity severity,
String messageId)
I18nFacesMessage based on the specified locale, severity, and messageId.getFacesMessage in interface I18nfacesContext - The current faces context.locale - The locale of the message.severity - The severity of the message.messageId - The id of the message.public javax.faces.application.FacesMessage getFacesMessage(javax.faces.context.FacesContext facesContext,
Locale locale,
javax.faces.application.FacesMessage.Severity severity,
String messageId,
Object... arguments)
I18nFacesMessage based on the specified locale, severity, and messageId. If the message contains a MessageFormat
pattern then the specified arguments are inserted into the message accordingly.getFacesMessage in interface I18nfacesContext - The current faces context.locale - The locale of the message.severity - The severity of the message.messageId - The id of the message.arguments - The values that are to be inserted according to the MessageFormat
pattern.public String getMessage(javax.faces.context.FacesContext facesContext, Locale locale, String messageId)
I18nString message based on the specified locale and messageId.getMessage in interface I18nfacesContext - The current faces context.locale - The locale of the message.messageId - The id of the message.public String getMessage(javax.faces.context.FacesContext facesContext, Locale locale, String messageId, Object... arguments)
I18nString message based on the specified locale, messageId. If the message contains a MessageFormat pattern then the specified
arguments are inserted into the message accordingly.getMessage in interface I18nfacesContext - The current faces context.locale - The locale of the message.messageId - The id of the message.arguments - The values that are to be inserted according to the MessageFormat
pattern.Copyright © 2016 Liferay, Inc.. All rights reserved.