Search and Find
Service
Contents at a Glance
4
Contents
5
About the Author
9
About the Technical Reviewer
10
Getting Started with JSF
11
Introducing the “Hello world” Application
11
Creating the “Hello world!” Application with JSF
19
Debugging a JSF Application
35
Summary
37
Using Forms
39
Developing a Stock Quote Application
39
Summary
76
Validating Input
77
Developing a Postage Calculator
77
Summary
110
Creating an E-shop
111
Listing the Products
112
Making the Link to Show the Details
116
Displaying Headers in the Columns
125
Implementing a Shopping Cart
126
Displaying the Content of the Shopping Cart
136
The Checkout Function
137
Getting the Credit Card Number of the Current User
141
Forcing the User to Log In
149
Implementing Logout
156
Protecting the Password
158
Summary
159
Creating Custom Components
161
Displaying a Copyright Notice on Multiple Pages
161
Allowing the Caller to Specify the Company Name
167
Creating a Product Editor
169
Passing a Method in a Parameter?
172
Creating a Box Component
173
Accepting Two Pieces of XHTML Code
176
Creating a Reusable Component Library
178
Creating a Component Library Without taglib.xml
180
Summary
182
Providing a Common Layout for Your Pages
183
Using the Same Menu on Different Pages
183
Using Global Navigation Rules
187
Using Two Abstract Parts
188
Creating Page-Specific Navigation Cases
190
Summary
192
Building Interactive Pages with Ajax
193
Displaying a FAQ
193
Refreshing the Answer Only
195
Hiding and Showing the Answer
199
Using Ajax to Hide or Show the Answer
201
Giving a Rating to a Question
204
Updating the Rating as the User Types
209
Using a Dialog Box to Get the Rating
210
Setting the Look and Feel with Skins
214
Displaying Multiple Questions
216
Summary
222
Using Conversations
224
Creating a Wizard to Submit Support Tickets
224
Interference Between Browser Windows
228
URL Mismatched?
234
Summary
238
Supporting Other Languages
239
Displaying the Current Date and Time
239
Supporting Chinese
240
Easier Way to Access Map Elements
245
Internationalizing the Date Display
246
Letting the User Change the Language Used
246
Localizing the Full Stop
251
Displaying a Logo
254
Making the Locale Change Persistent
256
Localizing Validation Messages
258
Summary
259
Using JBoss Seam
260
Installing Seam
260
Re-creating the E-shop Project
261
Allowing the User to Add Products
264
Restricting Access to the Product-Editing Page
272
Creating a Shopping Cart
274
Turning the Shopping Cart into a Stateful Session Bean
280
Creating the Checkout Page
284
Using WebLogic, WebSphere, or GlassFish
291
Summary
291
Index
293
All prices incl. VAT