This is NOT part of any API supported by Sun Microsystems. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
Utility wrapper around resource bundles that provides locale-specific message string lookups, as well as parameter replacement services.
If desired, this class can be used to define a managed bean wrapping a specified resource bundle, with a declaration like this in a faces-config.xml
configuration file:
<managed-bean> <managed-bean-name>messages</managed-bean-name> <managed-bean-class> org.apache.shale.util.Messages </managed-bean-class> <managed-bean-scope>application</managed-bean-scope> <managed-property> <property-name>name</property-name> <value>com.mycompany.mypackage.Bundle</value> </managed-property> </managed-bean>$Id: Messages.java 481403 2006-12-01 21:27:54Z rahul $
Uses keys when adding instead of actual messages to decouple code from messages. @author crazybob@google.com (Bob Lee)
|
|
|
|
|
|
|
|