没有合适的资源?快使用搜索试试~ 我知道了~
tapestry3文档
4星 · 超过85%的资源 需积分: 10 59 下载量 25 浏览量
2009-05-12
23:56:06
上传
评论
收藏 633KB PDF 举报
温馨提示
试读
96页
tapestry3的文档,适合老系统的开发
资源推荐
资源详情
资源评论
Tapestry Developer's Guide
Howard Lewis Ship
Tapestry Developer's Guide
Howard Lewis Ship
Copyright © 2000, 2001, 2002, 2003 The Apache Software Foundation
Table of Contents
1. Introduction ............................................................................................................................1
Scripting vs. Components .....................................................................................................1
Interaction .........................................................................................................................4
Security ............................................................................................................................. 5
Web Applications ................................................................................................................5
Features ............................................................................................................................6
2. JavaBeans and Properties ..........................................................................................................8
JavaBeans ..........................................................................................................................8
JavaBeans Properties ...........................................................................................................8
Property Paths .................................................................................................................. 10
Object Graph Navigation Library ......................................................................................... 10
3. Tapestry Components ............................................................................................................. 11
Parameters and Bindings .................................................................................................... 11
Connected Parameters ........................................................................................................ 12
Formal vs. Informal Parameters ........................................................................................... 14
Embedded Components ...................................................................................................... 14
HTML Templates .............................................................................................................. 15
Localizing sections of a template .................................................................................. 16
Components with Bodies ............................................................................................ 16
Tapestry and HTML Production ........................................................................................... 17
Implicitly removed bodies .......................................................................................... 17
Explicitly removed bodies .......................................................................................... 18
Limiting template content ........................................................................................... 18
Limits ..................................................................................................................... 19
Localization ..................................................................................................................... 19
Localization with Strings ............................................................................................ 19
Localization with Templates ........................................................................................ 20
Assets ............................................................................................................................. 20
Helper Beans .................................................................................................................... 21
4. Tapestry Pages ...................................................................................................................... 22
Page State ........................................................................................................................ 22
Persistent Page State .......................................................................................................... 23
EJB Page Properties .......................................................................................................... 24
Dynamic Page State ........................................................................................................... 25
Stale Links and the Browser Back Button .............................................................................. 27
Page Loading and Pooling .................................................................................................. 28
Page Localization .............................................................................................................. 30
Page Buffering ................................................................................................................. 31
Page Events ..................................................................................................................... 31
5. Application Engines and Services ............................................................................................. 34
Application Servlet ............................................................................................................ 34
Required Pages ................................................................................................................. 35
Server-Side State .............................................................................................................. 37
Stateful vs. Stateless .......................................................................................................... 37
Engine Services ................................................................................................................ 37
Logging .......................................................................................................................... 39
Private Assets ................................................................................................................... 40
6. Understanding the Request Cycle .............................................................................................. 41
Service URLs and query parameters ..................................................................................... 41
Page service ..................................................................................................................... 41
Action and Direct listeners .................................................................................................. 42
Direct service ................................................................................................................... 44
Action service .................................................................................................................. 45
iv
Services and forms ............................................................................................................ 47
7. Designing Tapestry Applications .............................................................................................. 48
Persistent Storage Strategy .................................................................................................. 48
Identify Pages and Page Flow .............................................................................................. 48
Identify Common Logic ..................................................................................................... 48
Identify Engine Services ..................................................................................................... 49
Identify Common Components ............................................................................................ 50
8. Coding Tapestry Applications .................................................................................................. 51
Application Engine ............................................................................................................ 51
Visit Object ..................................................................................................................... 51
Operating Stateless ............................................................................................................ 51
Enterprise JavaBeans Support .............................................................................................. 52
Page classes ..................................................................................................................... 52
9. Designing new components ..................................................................................................... 53
Choosing a base class ......................................................................................................... 53
Parameters and Bindings .................................................................................................... 53
Persistent Component State ................................................................................................. 55
Component Assets ............................................................................................................. 55
10. Tapestry and JavaScript ......................................................................................................... 57
The Body component ......................................................................................................... 58
Script Specifications and Script Components .......................................................................... 59
11. The Tapestry Inspector .......................................................................................................... 60
Specification View ............................................................................................................ 60
Template View ................................................................................................................. 60
Properties View ................................................................................................................ 61
Engine View .................................................................................................................... 62
Logging View .................................................................................................................. 63
A. Tapestry JAR files ................................................................................................................. 65
B. Tapestry Specification DTDs ................................................................................................... 66
<application> element ................................................................................................ 66
<bean> element .............................................................................................................. 67
<binding> element ........................................................................................................ 68
<configure> element .................................................................................................... 68
<component> element .................................................................................................... 69
<component-alias> element ........................................................................................ 70
<component-specification> element ........................................................................ 70
<context-asset> element ............................................................................................ 71
<description> element ................................................................................................ 72
<extension> element .................................................................................................... 72
<external-asset> element .......................................................................................... 73
<field-binding> element ............................................................................................ 74
<inherited-binding> element .................................................................................... 74
<library> element ........................................................................................................ 75
<library-specification> element ............................................................................ 75
<page> element .............................................................................................................. 75
<page-specification> element .................................................................................. 76
<parameter> element .................................................................................................... 76
<private-asset> element ............................................................................................ 78
<property> element ...................................................................................................... 78
<reserved-parameter> element .................................................................................. 79
<service> element ........................................................................................................ 79
<set-property> element .............................................................................................. 80
<set-string-property> element ................................................................................ 80
<static-binding> element .......................................................................................... 80
<string-binding> element .......................................................................................... 81
C. Tapestry Script Specification DTD ........................................................................................... 82
<body> element .............................................................................................................. 82
<foreach> element ........................................................................................................ 82
Tapestry Developer's Guide
v
剩余95页未读,继续阅读
资源评论
- jacky66zjx2012-07-02怎么是英文的?郁闷
hanahmily
- 粉丝: 0
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功