Book Image

Tapestry 5: Building Web Applications

Book Image

Tapestry 5: Building Web Applications

Overview of this book

Table of Contents (17 chapters)
Tapestry 5
Credits
About the Author
About the Reviewers
Preface
Foreword
Where to Go Next

DateInput Component


In Chapter 5 we became familiar with the DateField component. That component is implemented as a rather beautiful JavaScript-powered pop-up dialogue, and it can be very convenient and efficient in many cases.

However, there can be several reasons why we might want to have an alternative to DatePicker, one of them being the taste of our customers who, at least in my experience, often prefer to have a more traditional-looking control for date input. The natural alternative solution might look like three Select components—for days, months and years, working together as one unit. This is exactly the component we are going to create in the next sections.

This is what it is going to look like:

The size limit of this book does not allow us to fully develop the Celebrity Collector application, but we are going to prepare enough components for you to continue the work. For now, we are simply going to place such a component on one of the pages and make sure it works as we wish...