public interface I18n
String
or FacesMessage
.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 . |
javax.faces.application.FacesMessage getFacesMessage(javax.faces.context.FacesContext facesContext, Locale locale, javax.faces.application.FacesMessage.Severity severity, String messageId)
FacesMessage
based on the specified locale
, severity
, and messageId
.facesContext
- The current faces context.locale
- The locale of the message.severity
- The severity of the message.messageId
- The id of the message.javax.faces.application.FacesMessage getFacesMessage(javax.faces.context.FacesContext facesContext, Locale locale, javax.faces.application.FacesMessage.Severity severity, String messageId, Object... arguments)
FacesMessage
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.facesContext
- 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.String getMessage(javax.faces.context.FacesContext facesContext, Locale locale, String messageId)
String
message based on the specified locale
and messageId
.facesContext
- The current faces context.locale
- The locale of the message.messageId
- The id of the message.String getMessage(javax.faces.context.FacesContext facesContext, Locale locale, String messageId, Object... arguments)
String
message based on the specified locale
, messageId
. If the message contains a MessageFormat
pattern then the specified
arguments
are inserted into the message accordingly.facesContext
- 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 © 2018 Liferay, Inc.. All rights reserved.