万本电子书0元读

万本电子书0元读

顶部广告

Tapestry 5: Building Web Applications电子书

售       价:¥

4人正在读 | 0人评论 9.8

作       者:Alexander Kolesnikov

出  版  社:Packt Publishing

出版时间:2008-01-15

字       数:48.9万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
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.
目录展开

Tapestry 5

Table of Contents

Tapestry 5

Credits

About the Author

About the Reviewers

Preface

What This Book Covers

Who is This Book for

Conventions

Reader Feedback

Customer Support

Downloading the Example Code for the Book

Errata

Questions

Foreword

1. Introduction to Tapestry

Why is Tapestry Special?

Tapestry HTML Templates are Free from Obtrusive Instrumentation

Custom Components are Very Easy to Create

AJAX and DHTML, but No JavaScript Coding

User Input Validation Works Like Magic

Built-In Internationalization Support

Inversion of Control Made Easy

Is Tapestry the Savior in the World of Java Web Development?

The Journey of Tapestry from 3 to 5

Summary

2. Creating Your Working Environment

Install a JDK

Configuring the Environment for Windows

Configuring environment for Mac OS X

Install Maven

Create a Skeleton Tapestry project

Install NetBeans

Debugging in NetBeans

Installing Eclipse

Installing Tomcat

Configuring the Project in Eclipse

Debugging in Eclipse

Summary

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

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

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

6. User Input Validation

Adding Validation to Components

Validators

Providing Custom Error Messages

Handling Validation-Related Form Events

Cross-Form Validation

BeanEditForm Validation

Summary

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

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

A. The Basics of Java for the Web

The Standard Structure of a Java Web Application

The Basics of the Deployment Descriptor

WAR Files Basics

About Java-Enabled Servers

B. Creating a Real Data Source with db4o

Preparing the Database

The Main Operations

The Final Strokes

C. Where to Go Next

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部