|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectru.sstu.web.core.Messages
ru.sstu.web.jsf.JsfMessages
public final class JsfMessages
Messages class provides access to JSF message resources.
| Constructor Summary | |
|---|---|
JsfMessages()
Initializes messages for JSF. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class ru.sstu.web.core.Messages |
|---|
getBundles, getString, getString, setBundles |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JsfMessages()
| Method Detail |
|---|
public javax.faces.application.FacesMessage getMessage(String resourceId)
FacesMessage instance with default
bundle name and given resource ID.
resourceId - resource ID
FacesMessage instance
public javax.faces.application.FacesMessage getMessage(String resourceId,
Object... params)
FacesMessage instance with default
bundle name, resource ID, and parameters.
resourceId - resource IDparams - parameters
FacesMessage instance
public 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 - parameters
FacesMessage instance
public String getString(String bundle,
String resourceId,
Object... params)
getString in class Messagesbundle - resource bundleresourceId - resource IDparams - parameters
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||