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

Alexander Kolesnikov

"Tapestry 5: Building Web Applications"


Creating the Border Component
In any real life web application, there is always some content that is repeated
on many pages. Such content can include??”logo, navigation menu, copyright
message, standard links to legal information, contact page and so on. Also, there
is almost always a link to a stylesheet in the page code, and if the application is
internationalized, it might make sense to have a locale switcher on every page too.
It would be convenient to create all this content just once, and then reuse it on as
many pages as we wish, and in this section we are going to build a component that
will encapsulate all the common page elements.
Let's start by creating a template and a Java class. The steps required for creating
them are the same as when creating a template and a class for a new page, with the
only difference being that these should be created in the com.packtpub.celebrity.
components package. Please create such a package and then add to it an empty Java
class named Border. Also, add an empty file named Border.tml to the new package,
in the same way as we add message catalogs to source code packages.
Chapter 8
[ 197 ]
Here is possible content for the first version of the component template,
Border.


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