The following is what we are going to display on ShowAll page:
Basically, it lists all celebrities in our collection in a table. The last name serves as a link, and by clicking on it, the user will proceed to a page with all the details about the selected celebrity (we shall add that page to the application a bit later).
Here is the completed template for this page:
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"> <head> <title>Celebrity Collector: All Celebrities</title> </head> <body> <h1>All Celebrities in Collection</h1> <table width="100%"> <tr t:type="loop" t:source="allCelebrities" t:value="celebrity"> <td> <a href="#" t:type="ActionLink" t:context="celebrity.id" t:id="detailsLink">${celebrity.lastName}</a> </td> <td>${celebrity.firstName}</td> <td> <t:output t:format="dateFormat" t:value="celebrity.dateOfBirth"/> </td>...