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

Alexander Kolesnikov

"Tapestry 5: Building Web Applications"

First of all,
you will probably want the submit button to display a different label, not the default
Create/Update. Nothing could be easier:

You can also explicitly specify the object that BeanEditForm should work with, and
use an arbitrary id:
t:submitLabel="Save"/>
Although BeanEditForm made a lot of clever guesses, in many cases we shall want
to somehow influence the way it works. As with the Grid component in the previous
section, we'll want to remove the Id field and change the order of fields in the form,
so that the Birth Date Verified check box is underneath the Birth Date control.
By the way, did you notice that the label for this control is Birth Date, not
Date Of Birth, as would be automatically generated by Tapestry? This is
because of the entry that we've added to the app.properties file.
That file is used by the whole application, and every label associated
with the dateOfBirth ID will automatically receive the value from the
message catalog.
Chapter 5
[ 143 ]
The way we tidy up the BeanEditForm is very similar to what we did with the
Grid component:
remove="id"
reorder="firstName,lastName,dateOfBirth,birthDateVerified,
occupation,biography"/>
The other change we might want to make is to change the control that is used for
Biography.


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