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.
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:
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"> <head> <title>Celebrity Collector: Registration</title> </head> <body> <h1>Registration</h1> <t:form t:id="registrationForm"> <table> <tr> <td><t:label t:for="userName"> Label for user name</t:label>:</td> <td><input type="text" t:type="textfield" t:id="userName" t:value="userName"/></td...