Tapestry 5: Building Web Applications

A step-by-step guide to Java Web development with the developer-friendly Apache Tapestry framework

Tapestry 5: Building Web Applications

Starting
Alexander Kolesnikov

A step-by-step guide to Java Web development with the developer-friendly Apache Tapestry framework
$10.00
$39.99
RRP $23.99
RRP $39.99
eBook
Print + eBook
$12.99 p/month

Get Access

Get Unlimited Access to every Packt eBook and Video course

Enjoy full and instant access to over 3000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

+ Collection
Free Sample

Book Details

ISBN 139781847193070
Paperback280 pages

About This Book

 

  • Latest version of Tapestry web development framework
  • Get working with Tapestry components
  • Gain hands-on experience developing an example site  
  • Practical step-by-step tutorial

 

Who This Book Is For

This book is for those who want to build sophisticated Java web applications quickly and easily. It assumes that the reader is reasonably comfortable with the Java programming language, but no knowledge of web technologies is needed. For experienced Servlet, JSP, or Struts developers, the book will show an alternative way that will allow them to raise their productivity to an incomparable level. With this book you will see that a contemporary component-based framework can be easy to learn and a pleasure to work with.

Table of Contents

Chapter 1: Introduction to Tapestry
Why is Tapestry Special?
Is Tapestry the Savior in the World of Java Web Development?
Summary
Chapter 2: Creating Your Working Environment
Install a JDK
Install Maven
Install NetBeans
Installing Eclipse
Installing Tomcat
Configuring the Project in Eclipse
Summary
Chapter 3: The Foundations of Tapestry
Tapestry Application is a Set of Interactive Pages
Page Template and Page Class
Using Expansions
Using Components
Passing a Value Between Pages
What Can be Returned From an Event Handler
Tapestry Pages are Pooled
Making a Page Field Persistent
Using Page Activation Context
Different Ways of Defining Components
Structuring the Application
Creating and Using an Application State Object
Was an ASO Already Instantiated?
Summary
Chapter 4: Simple Components
Celebrity Collector Project
The Auxiliary Classes
TextField, PasswordField and PageLink
Limiting Access to a Page
Loop, Output and DirectLink
Another Use of PageLink Component
Radio and RadioGroup
Using Enumerations for Radio Component Values
Prefixes: prop and literal
The If and Checkbox Components
Submit Component
More Than One Submit Button
Select Component
Configuring an Application State Object
Summary
Chapter 5: Advanced Components
Grid Component
Tweaking the Grid
Changing the Column Titles
Using GridDataSource
BeanEditForm Component
Tweaking BeanEditForm
DateField Component
Changing the Styles of Grid and BeanEditForm
FCKEditor Component
Summary
Chapter 6: User Input Validation
Adding Validation to Components
Validators
Providing Custom Error Messages
Handling Validation-Related Form Events
Cross-Form Validation
BeanEditForm Validation
Summary
Chapter 7: Internationalization and Localization
Internationalization on the Java Platform
Internationalization in Tapestry
Creating and Using Message Catalogs
Providing a German Message Catalog
Switching Locale
Internationalization of Images
Using Localized Templates
Other Examples of Internationalization
Summary
Chapter 8: Creating Custom Components
How to Create a Tapestry 5 Component
Creating the Border Component
Adding a Navigation Menu
Using a Parameter
Unleashing the Power of Select Component
Creating an OptionModel
Creating a SelectModel
Creating a ValueEncoder
Selecting a Celebrity
DateInput Component
Making DateInput a Field
Adding Simple Validation
Creating a Universal Locale Switcher
Creating a Custom Service
Creating a Library of Custom Components
Summary

What You Will Learn

In Detail

Authors

Table of Contents

Chapter 1: Introduction to Tapestry
Why is Tapestry Special?
Is Tapestry the Savior in the World of Java Web Development?
Summary
Chapter 2: Creating Your Working Environment
Install a JDK
Install Maven
Install NetBeans
Installing Eclipse
Installing Tomcat
Configuring the Project in Eclipse
Summary
Chapter 3: The Foundations of Tapestry
Tapestry Application is a Set of Interactive Pages
Page Template and Page Class
Using Expansions
Using Components
Passing a Value Between Pages
What Can be Returned From an Event Handler
Tapestry Pages are Pooled
Making a Page Field Persistent
Using Page Activation Context
Different Ways of Defining Components
Structuring the Application
Creating and Using an Application State Object
Was an ASO Already Instantiated?
Summary
Chapter 4: Simple Components
Celebrity Collector Project
The Auxiliary Classes
TextField, PasswordField and PageLink
Limiting Access to a Page
Loop, Output and DirectLink
Another Use of PageLink Component
Radio and RadioGroup
Using Enumerations for Radio Component Values
Prefixes: prop and literal
The If and Checkbox Components
Submit Component
More Than One Submit Button
Select Component
Configuring an Application State Object
Summary
Chapter 5: Advanced Components
Grid Component
Tweaking the Grid
Changing the Column Titles
Using GridDataSource
BeanEditForm Component
Tweaking BeanEditForm
DateField Component
Changing the Styles of Grid and BeanEditForm
FCKEditor Component
Summary
Chapter 6: User Input Validation
Adding Validation to Components
Validators
Providing Custom Error Messages
Handling Validation-Related Form Events
Cross-Form Validation
BeanEditForm Validation
Summary
Chapter 7: Internationalization and Localization
Internationalization on the Java Platform
Internationalization in Tapestry
Creating and Using Message Catalogs
Providing a German Message Catalog
Switching Locale
Internationalization of Images
Using Localized Templates
Other Examples of Internationalization
Summary
Chapter 8: Creating Custom Components
How to Create a Tapestry 5 Component
Creating the Border Component
Adding a Navigation Menu
Using a Parameter
Unleashing the Power of Select Component
Creating an OptionModel
Creating a SelectModel
Creating a ValueEncoder
Selecting a Celebrity
DateInput Component
Making DateInput a Field
Adding Simple Validation
Creating a Universal Locale Switcher
Creating a Custom Service
Creating a Library of Custom Components
Summary

Book Details

ISBN 139781847193070
Paperback280 pages
Read More

Recommended for You