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

Alexander Kolesnikov

"Tapestry 5: Building Web Applications"


All that is left now is to remove the unwanted Id column and to change the order of
the remaining columns. For this, we'll use two properties of the Grid??”remove and
reorder. Modify the component's definition in the page template to look like this:
row="celebrity"
remove="id"
reorder="lastName,firstName,occupation,dateOfBirth">


${celebrity.lastName}



Chapter 5
[ 133 ]
Please note that re-ordering doesn't delete columns. If you omit some
columns while specifying their order, they will simply end up last
in the table.
Now, if you run the application, you should see that the table with a collection of
celebrities is displayed exactly as we wanted:
Changing the Column Titles
Column titles are currently generated by Tapestry automatically. What if we
want to have different titles? Say we want to have the title, Birth Date, instead of
Date Of Birth.
The easiest and the most efficient way to do this is to use the message catalog, the
same one that we used while working with the Select component in the previous
chapter.


Pages:
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6