public final class JsfMessages extends Messages
Messages class provides access to JSF message resources.| Constructor and Description |
|---|
JsfMessages()
Initializes messages for JSF.
|
| Modifier and Type | Method and Description |
|---|---|
javax.faces.application.FacesMessage |
getMessage(String resourceId)
This method returns
FacesMessage instance with default
bundle name and given resource ID. |
javax.faces.application.FacesMessage |
getMessage(String resourceId,
Object... params)
This method returns
FacesMessage instance with default
bundle name, resource ID, and parameters. |
javax.faces.application.FacesMessage |
getMessage(String bundleName,
String resourceId,
Object... params)
This method returns
FacesMessage instance with a given
bundle name, resource ID, and parameters. |
String |
getString(String bundle,
String resourceId,
Object... params)
Get the resource string with the given ID and parameters from the bundle.
|
getBundles, getString, getString, setBundlespublic javax.faces.application.FacesMessage getMessage(String resourceId)
FacesMessage instance with default
bundle name and given resource ID.resourceId - resource IDFacesMessage instancepublic javax.faces.application.FacesMessage getMessage(String resourceId, Object... params)
FacesMessage instance with default
bundle name, resource ID, and parameters.resourceId - resource IDparams - parametersFacesMessage instancepublic javax.faces.application.FacesMessage getMessage(String bundleName, String resourceId, Object... params)
FacesMessage instance with a given
bundle name, resource ID, and parameters.bundleName - bundle nameresourceId - resource IDparams - parametersFacesMessage instanceCopyright © 2013 TFI branch of Engels Instutute of Technology. All Rights Reserved.