Provides a localized read only messages Map for Page and Control classes.
A MessagesMap instance is available in each Velocity page using the name "
messages".
For example suppose you have a localized page title, which is stored in the Page's properties file. You can access page "title" message in your page template via:
$messages.title
This is roughly equivalent to making the call:
public void onInit() { .. addModel("title", getMessage("title"); }
Please note if the specified message does not exist in your Page's properties file, or if the Page does not have a properties file, then a
MissingResourceException will be thrown.
The ClickServlet adds a MessagesMap instance to the Velocity Context before it is merged with the page template.