|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface I18n
This interface defines a contract for obtaining internationalized messages of type String or FacesMessage.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||