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

Alexander Kolesnikov

"Tapestry 5: Building Web Applications"

tml file:


Celebrity Collector
href="${asset:context:/assets/styles.css}"
type="text/css"/>



align="middle"/>

${localeLabel}





Basically, we have put here content that is common for every page, and only one
element, , is something new for us. This is just a special Tapestry element;
its only purpose is to be replaced by any page content that is surrounded by the
Border component. You will see how this works soon.
We managed to configure the link to the stylesheet completely in the template, so no
code in the component class will be needed. However, to enable locale switching, we
are going to need some code; but we can simply copy it from the Start page class.
The completed Border class should look like this:
package com.packtpub.celebrities.components;
import java.util.Locale;
import org.apache.tapestry.annotations.Inject;
import org.apache.tapestry.annotations.OnEvent;
import org.apache.


Pages:
227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251
druga wojna światowa Free English grammar and study guid hotel jelenia góra Russian bride counter strike 1.6