SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 219 | Next

Alexander Kolesnikov

"Tapestry 5: Building Web Applications"

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.


Pages:
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6