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

Alexander Kolesnikov

"Tapestry 5: Building Web Applications"

Here is how
the ShowAll page should look now:
Creating Custom Components
[ 200 ]
This is already closer to a real life application, but all those "quick and dirty" links
that connect pages to each other are not a proper means for navigation. We need a
navigation menu.
Adding a Navigation Menu
Let me admit from the very beginning that I am not going to show a production
quality menu. That would require a serious use of styles, and I don't want to create
such a distraction for you. We are going to use a simple table for layout, and a set of
links. This will provide a decent foundation, and you can add any kind of styling to
it when you have time.
All work will concentrate on the Border component template. Here is what we want
to see when the application is rendered on the AddCelebrity page:
Chapter 8
[ 201 ]
And here are the additions to the Border.tml template that we need to make to
achieve this:


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



align="middle"/>

${localeLabel}














Home


Registration



All Celebrities



Add New






Creating Custom Components
[ 202 ]
Now we can easily navigate from page to page, although we shall not be able to see
the ShowAll page until we log in properly.


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