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

Alexander Kolesnikov

"Tapestry 5: Building Web Applications"

packtpub.t5first.pages package and add a new Java
class, name it Another. Let this class remain empty for the moment. Finally, change
the PageLink component in the Start.tml file to point to the new page:


Go to Another
page


Again, the names for the component and the page are case-insensitive, so you
could have them as or page="AnOtHeR"> if you prefer.
Run the application, click on the links, and you should be able to switch between the
two pages.
Note that in Tapestry, to navigate between pages you don't need to think in terms
of URL, or where the pages are physically located. You just need to tell the
framework which page you want to show, by name, and Tapestry figures out
everything by itself.
You already have some experience with defining components. Let's add a few
others using the same approach. We are going to use a text field to give the user an
opportunity to provide some value and a button to submit that value. However,
the TextField component that we are going to use for the text box is a kind of
component that must be surrounded by a Form component to work (this is because of
the way HTML works: form controls have to be surrounded by the
element),
so we shall provide a Form component as well.


Pages:
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6