Tapestry User's Guide

Howard Lewis Ship


Table of Contents

1. Introduction
Pages and Components
Engines, Services and the Visit
2. Tapestry Page and Component Templates
Template locations
Template Contents
Components in Templates
Component Ids
Specifying Parameters
Formal and Informal Parameters
3. Managing Server-Side State
Understanding Servlet State
Engine
Visit Object
Global Object
Persistent Page Properties
Implementing Persistent Page Properties Manually
Manual Persistent Component Properties
Stateless Applications
4. Configuring Tapestry
Web Deployment Descriptor
Configuration Search Path
Application Extensions
A. Tapestry Specification DTDs
application element
bean element
binding element
component element
component-type element
component-specification element
configure element
context-asset element
description element
extension element
external-asset element
inherited-binding element
library element
library-specification element
listener-binding element
message-binding element
page element
page-specification element
parameter element
private-asset element
property element
property-specification element
reserved-parameter element
service element
set-message-property element
set-property element
static-binding element
B. Tapestry Script Specification DTD
body element
foreach element
if element
if-not element
include-script element
initialization element
input-symbol element
let element
script element
set element
unique element

List of Figures

A.1. application Attributes
A.2. application Elements
A.3. bean Attributes
A.4. bean Elements
A.5. binding Attributes
A.6. component Attributes
A.7. component Elements
A.8. component-type Attributes
A.9. component-specification Attributes
A.10. component-specification Elements
A.11. configure Attributes
A.12. context-asset Attributes
A.13. extension Attributes
A.14. component-specification Elements
A.15. external-asset Attributes
A.16. inherited-binding Attributes
A.17. library Attributes
A.18. library-specification Elements
A.19. listener-binding Attributes
A.20. message-binding Attributes
A.21. page Attributes
A.22. page-specification Attributes
A.23. page-specification Elements
A.24. parameter Attributes
A.25. private-asset Attributes
A.26. property Attributes
A.27. property-specification Attributes
A.28. reserved-parameter Attributes
A.29. service Attributes
A.30. set-message-property Attributes
A.31. set-property Attributes
A.32. static-binding Attributes
B.1. body Elements
B.2. foreach Attributes
B.3. foreach Elements
B.4. if Attributes
B.5. if Elements
B.6. if-not Attributes
B.7. if-not Elements
B.8. include-script Attributes
B.9. initialization Elements
B.10. input-symbol Attributes
B.11. let Attributes
B.12. let Elements
B.13. script Elements
B.14. set Attributes
B.15. unique Elements

List of Tables

A.1. Tapestry Specifications

List of Examples

2.1. Example HTML template containing components
3.1. Accessing the Visit object
3.2. Defining the Visit class
3.3. Persistent Page Property: Java Class
3.4. Persistent Page Property: Page Specification
3.5. Use of initialize() method
3.6. Manual Persistent Page Property
3.7. Manual Persistent Component Properties
4.1. Virtual Library Deployment Descriptor