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

Alexander Kolesnikov

"Tapestry 5: Building Web Applications"


Anyway, now you know both components and so you can easily choose which one
better suits your needs.
We still have the Registration page empty, and this is where we are going to meet a
significant number of new Tapestry components. Let's fill this page with content.
Radio and RadioGroup
First of all, we need to provide some functionality that is common for registration
pages??”text boxes for username, password, and re-entered password. They will not
give us any additional knowledge right now, but later they will be useful for the user
input validation topic.
Simple Components
[ 106 ]
Then, let's say, we want users to specify their gender. For this, we shall provide a
couple of radio buttons, so that the interface looked like this:
To create such an interface, let's change the Registration.tml template to look
like this:


Celebrity Collector: Registration


Registration










Chapter 4
[ 107 ]











Label for user name
:
t:id="userName" t:value="userName"/>

Label for password
:
t:id="password" t:value="password"/>

Label for password 2
:
t:id="password2" t:label="Repeat password"
t:value="password2"/>
Gender:

t:value="literal:M"/> Male
t:value="literal:F"/> Female







Back to the Start Page



Everything should be familiar to you in this template, except for the
following fragment:


Male

Female

This is how a group of radio buttons is created in Tapestry.


Pages:
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6