Tapestry in Action

Tapestry in Action

by Howard Lewis Ship

Paperback

$44.95 
  • SHIP THIS ITEM
    Qualifies for Free Shipping
  • PICK UP IN STORE
    Check Availability at Nearby Stores

Related collections and offers


Overview

The creator of Tapestry details how to use this new framework's components to create rich web-based GUIs using links, images, and HTML forms. The challenges of web application development are discussed, such as managing server-side state properly, application localization, and maintaining synchronization between the client web browser and the application server. At the same time, the benefits of a clean separation between presentation logic and business logic and how well Tapestry succeeds in keeping these two concerns apart are identified. Written for new Tapestry users and even developers new to creating web applications in general, this guide includes extensive notes on development ""gotchas,"" including common Tapestry errors and how to fix them. Advanced techniques are covered as well, including creating entirely new components, integration with traditional servlet and JSP applications, and creation of client-side JavaScript. Finally, a complete J2EE application, the Virtual Library, is presented and analyzed in detail.

Product Details

ISBN-13: 9781932394115
Publisher: Manning
Publication date: 03/01/2004
Series: In Action
Pages: 400
Product dimensions: 7.36(w) x 9.20(h) x 1.50(d)

About the Author

A professional software developer with fifteen years of experience and a member of the Apache Software Foundation, Howard Lewis Ship is the creator and the principal architect of Tapestry.

Table of Contents

Forewordxvii
Prefacexix
Acknowledgmentsxxi
About this bookxxiii
About the titlexxvii
About the cover illustrationxxviii
Part 1Getting started with Tapestry1
1Introducing Tapestry3
1.1What are web applications?5
1.2What are Java servlets?7
1.3Why do we need Tapestry?16
1.4Understanding Tapestry's goals22
1.5How does Tapestry work?25
1.6Using Spindle35
1.7Summary37
2Getting started with Tapestry38
2.1Introducing the Hangman application39
2.2Developing the Home page51
2.3Implementing the Home page using standard servlets62
2.4Developing the Guess page65
2.5Developing the Win and Lose pages89
2.6Configuring the web.xml deployment descriptor89
2.7Summary91
3Tapestry and HTML forms92
3.1Understanding HTML forms93
3.2Creating a simple login form96
3.3Understanding the Form component103
3.4Using basic form control components109
3.5Creating a to-do list120
3.6Summary132
4Advanced form components133
4.1Introducing the advanced form components134
4.2Creating drop-down lists with PropertySelection134
4.3Recording data in the form with Hidden148
4.4Looping within a form using ListEdit151
4.5Handling file uploads160
4.6Creating pop-up date selections using DatePicker165
4.7Summary168
5Form input validation169
5.1Validating user input170
5.2Building the Register page179
5.3Validating input based on regular expressions195
5.4Customizing label and field decorations199
5.5Enabling client-side validation202
5.6Handling form-level validations205
5.7Using validation without ValidField208
5.8Summary211
Part 2Creating Tapestry Components213
6Creating reusable components215
6.1Creating simple template components216
6.2Creating the component specification219
6.3Creating the Digit and Scaffold components230
6.4Creating the Letter component234
6.5Building the Spell component238
6.6Building the Border component242
6.7Creating interactive, reusable components246
6.8Using component libraries254
6.9Packaging components into libraries261
6.10Summary268
7Tapestry under the hood269
7.1Processing requests270
7.2Understanding the application servlet271
7.3Understanding the Tapestry engine277
7.4Understanding engine services279
7.5Page rendering in detail291
7.6Loading and pooling pages299
7.7Using persistent page properties306
7.8Using specified properties308
7.9Localizing Tapestry applications309
7.10Summary321
8Advanced techniques322
8.1Creating new engine services323
8.2Client-side scripting339
8.3Integrating with JavaServer Pages369
8.4Summary379
Part 3Building complete Tapestry applications381
9Putting it all together383
9.1Introducing the Virtual Library384
9.2Performing searches385
9.3Logging in and registering388
9.4Borrowing books389
9.5Getting details about books and persons390
9.6Managing your books393
9.7Administering the Virtual Library399
9.8Summary402
10Implementing a Tapestry application403
10.1Looking at the application layers404
10.2Organizing EJB access406
10.3Implementing the Search page413
10.4Implementing the BookMatches page419
10.5Implementing the Browser component430
10.6Implementing the ColumnSorter component434
10.7Implementing the Border component438
10.8Authenticating the user445
10.9Creating bookmarkable links449
10.10Editing a Book457
10.11Giving books away463
10.12Editing the publishers464
10.13Editing the list of users470
10.14Creating the web deployment descriptor474
10.15Wrapping it all up477
Appendix AGetting involved with Tapestry479
Appendix BBuilding the examples with Ant485
Appendix CTapestry component reference493
Appendix DTapestry specifications516
Index537
From the B&N Reads Blog

Customer Reviews