We can also provide a button for this purpose??”let it be labeled Reset??”using a second Submit component. Let's position it next to the existing Submit button, using the following code: value="Submit"/> value="Reset"/> Simple Components [ 120 ] And of course, we need an event handler for the new component: @OnEvent(component="resetButton") void onResetButton() { userName = null; password = null; email = null; gender = null; subscribe = false; } We are simply assigning default values to all the persistent properties here. Test the application, and everything should work fine. This chapter is becoming rather long, but there is only one component left of those we have planned to learn, and this one is very useful. Select Component Drop-down lists that allow a user to select one value out of several options are an important part of web interfaces. In Tapestry, we use a Select component to display such a drop-down list. Every time we have a fixed set of several options in our code, we need to think of enumeration, and it is natural that the easiest way to use the Select component is in combination with an enumeration.