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 220 | Next

Alexander Kolesnikov

"Tapestry 5: Building Web Applications"

For example, the
message in the page-specific catalogue will override the one in the root catalog.
In the example above, the login-here message will be easily found in the page's
catalog, but for the celebrity-collector message Tapestry will have to look into
the root one. All this works automatically though.
Internationalization and Localization
[ 180 ]
The other way we can obtain a message in the page template is by using message:
prefix inside an attribute value. The following fragment of the Start page template
demonstrates this approach:



Label for the first text box
:


t:label="message:user-name" t:validate="required"/>




The second label:


t:label="message:password" t:type="PasswordField"
t:validate="required"/>


You already know two prefixes??”literal: which tells Tapestry that whatever
follows should be taken literally, and prop: which tells Tapestry that the value
should be provided by a property of the page class. So here is the third one,
message: which tells Tapestry that the value should be obtained from the message
catalog using the provided key.


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