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

Alexander Kolesnikov

"Tapestry 5: Building Web Applications"

apache.org/schema/tapestry_5_0_0.xsd">

Celebrity Collector: Adding New<br>Celebrity


Adding New Celebrity





We also need to somehow connect the new page to the rest of the application. For
instance, we could add this new PageLink component somewhere at the bottom of
the ShowAll page:
Add new
Celebrity



Back to the Start Page

Finally, to make things more interesting, add another couple of properties to the
Celebrity class (don't forget to generate getters and setters for them):
private String biography;
private boolean birthDateVerified;
Say we could store a brief biography in the first property, and the second could be
set to true whenever we verify in some way that the birth date is correct.
Run the application, log in, and at the ShowAll page, click on the link leading to the
new AddCelebrity page. You will see the BeanEditForm in all its glory:
Chapter 5
[ 141 ]
Isn't it amazing how much can be done for us by Tapestry when we just drop one
component onto the page, with virtually no configuration? Let's see how all this
magic works:
Since we didn't specify any object parameter for BeanEditForm, Tapestry
decided that the name of the property should be the same as the id of the
BeanEditForm component.


Pages:
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6