properties file: celebrity-collector=Celebrity Collector We also need to do something with the page template so that it can retrieve the appropriate strings from message catalogs. There are actually a few slightly different ways to retrieve a message, let's try them all. The first option is to use an expansion with the message: prefix in it. Here is how the upper portion of the page template will look after applying such expansion:
${message:celebrity-collector}
${message:celebrity-collector}
${message:login-here}:
When Tapestry sees an ordinary expansion like ${styles} in the listing above, it will go to the page class and try to retrieve an appropriate value from there. However, when it sees the message: prefix inside the expansion, it will understand that what follows after the prefix is the key into the message catalogs that are available to the page. Both page-specific and root catalogs are made available to it, but the page-specific one is checked first. If there are two messages with the same key in different catalogs, the most specific one will be used.