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

Alexander Kolesnikov

"Tapestry 5: Building Web Applications"


Creating Custom Components
[ 206 ]
If we want Select component to work with the Celebrity object, we need to create
a model from scratch, let's name it CelebritySelectModel, and Tapestry expects it
to be an implementation of SelectModel interface.
Before going into the details of constructing a custom model, it will be useful to
refresh our memory by reviewing the basics of a HTML control named SELECT. Here
is how it might look:

We need to know that in HTML a drop-down list is made of a number of