Publisher: Apress
Year: 2009
Language: English
Pages: 314
Prelims
......Page 1
Contents at a Glance......Page 5
Contents......Page 7
About the Author......Page 11
About the Technical Reviewer......Page 13
Introducing the fiHello worldfl Applicati......Page 15
Installing Eclipse......Page 16
Installing JBoss......Page 17
Installing a JSF Implementation......Page 21
Installing Web Beans......Page 22
Creating the fiHello world!fl Application with J......Page 23
Generating Dynamic Content......Page 31
Retrieving Data from Java Code......Page 34
Debugging a JSF Application......Page 39
Summary......Page 41
Getting the Stock Quote Symbol......Page 43
Displaying the Result Page......Page 50
Displaying the Stock Value......Page 52
Marking Input As Required......Page 54
Inputting a Date......Page 63
Conversion Errors and Empty Input......Page 69
Using a Combo Box......Page 74
Using a Single b2 Bean......Page 76
Hooking Up the Web Beans......Page 77
Summary......Page 80
Developing a Postage Calculator......Page 81
What If the Input Is Invalid?......Page 87
Null Input and Validators......Page 92
Validating the Patron Code......Page 94
Creating a Custom Validator for the Patron Code......Page 96
Displaying the Error Messages in Red......Page 100
Displaying the Error Message Along with the Field......Page 101
Validating a Combination of Multiple Input Values......Page 110
Summary......Page 114
Creating an eshop......Page 115
Listing the Products......Page 116
Making the Link to Show the Details......Page 120
Displaying Headers in the Columns......Page 129
Implementing a Shopping Cart......Page 130
Displaying the Content of the Shopping Cart......Page 140
the Checkout Function......Page 141
Getting the Credit Card number of the Current User......Page 145
Forcing the User to Log In......Page 153
Implementing Logout......Page 160
Protecting the Password......Page 162
Summary......Page 163
Displaying a Copyright Notice on Multiple Pages......Page 165
Allowing the Caller to Specify the Company Name......Page 171
Creating a Product Editor......Page 173
Passing a Method in a Parameter?......Page 176
Creating a Box Component......Page 177
Accepting Two Pieces of XHTML Code......Page 180
Creating a Reusable Component Library......Page 182
Creating a Component Library Without taglib.xml......Page 184
Summary......Page 186
Using the Same Menu on Different Pages......Page 187
Using Global Navigation Rules......Page 191
Using Two Abstract Parts......Page 192
Creating PageSpecific Navigation Cases......Page 194
Summary......Page 196
Displaying a FAQ......Page 197
Refreshing the Answer Only......Page 199
Hiding and Showing the Answer......Page 203
Using Ajax to Hide or Show the Answer......Page 205
Giving a Rating to a Question......Page 208
Updating the Rating as the User Types......Page 213
Using a Dialog Box to Get the Rating......Page 214
Setting the Look and Feel with Skins......Page 218
Displaying Multiple Questions......Page 220
Summary......Page 226
Creating a Wizard to Submit Support Tickets......Page 229
Interference Between Browser Windows......Page 233
URL Mismatched?......Page 239
Summary......Page 243
Displaying the Current Date and Time......Page 245
Supporting Chinese......Page 246
Easier Way to Access Map Elements......Page 251
Letting the User Change the Language Used......Page 252
Localizing the Full Stop......Page 257
Displaying a Logo......Page 260
Making the Locale Change Persistent......Page 262
Localizing Validation Messages......Page 264
Summary......Page 265
Installing Seam......Page 267
Re-creating the E-shop Project......Page 268
Allowing the User to Add Products......Page 271
Restricting Access to the Product-Editing Page......Page 279
Creating a Shopping Cart......Page 281
Turning the Shopping Cart into a Stateful Session Bean......Page 287
Creating the Checkout Page......Page 291
Summary......Page 298
Index......Page 301