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

Alexander Kolesnikov

"Tapestry 5: Building Web Applications"

If they are correct, the authenticate method returns a User object with
some default information in it; otherwise, it returns a null. You will see how all this is
going to be used in Celebrity Collector very soon.
Now that the infrastructure is ready, let's proceed to creating the Start page with a
few components on it.
TextField, PasswordField and PageLink
The first step is to edit the existing Start page. We are going to remove most of its
generated content, and instead of it, we are going to create a login form and a link to
Registration page. What we want to achieve should look similar to this:
Chapter 4
[ 89 ]
This is a very common solution, you have definitely seen it on many websites that
require authentication.
Here is one possible way to create a Tapestry template for such a page:


Celebrity Collector


Celebrity Collector


Log in here:

















Label for the first text box
:

t:type="TextField" t:value="userName"/>


The second label
:

t:type="PasswordField" t:value="password"/>






Or register




Simple Components
[ 90 ]
Let's see what we have got here.


Pages:
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6