Core JavaServer(TM) Faces

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

JavaServer Faces (JSF) is quickly emerging as the leading solution for rapid user interface development in Java-based server-side applications. Now, Core JavaServer™ Faces –the #1 guide to JSF–has been thoroughly updated in this second edition, covering the latest feature enhancements, the powerful Ajax development techniques, and open source innovations that make JSF even more valuable.

Authors David Geary and Cay Horstmann delve into all facets of JSF 1.2 development, offering systematic best practices for building robust applications, minimizing handcoding, and maximizing productivity. Drawing on unsurpassed insider knowledge of the Java platform, they present solutions, hints, tips, and “how-tos” for writing superior JSF 1.2 production code, even if you’re new to JSF, JavaServer Pages™, or servlets.

The second edition’s extensive new coverage includes: JSF 1.2’s improved alignment with the broader Java EE 5 platform; enhancements to the JSF APIs; controlling Web flow with Shale; and using Facelets to replace JSP with XHTML markup. The authors also introduce Ajax development with JSF–from real-time validation and Direct Web Remoting to wrapping Ajax in JSF components and using the popular Ajax4jsf framework.

This book will help you

  • Automate low-level details and eliminate unnecessary complexity in server-side development
  • Discover JSF best practices, ranging from effective UI design and style sheets to internationalization
  • Use JSF with Tiles to build consistent, reusable user interfaces
  • Leverage external services such as databases, LDAP directories, authentication/authorization, and Web services
  • Use JBoss Seam to greatly simplify development of database-backed applications
  • Implement custom components, converters, and validators
  • Master the JSF 1.2 tag libararies, and extend JSF with additional tag libraries
Preface Acknowledgments Chapter 1: Getting Started Chapter 2: Managed Beans Chapter 3: Navigation Chapter 4: Standard JSF Tags Chapter 5: Data Tables Chapter 6: Conversion and Validation Chapter 7: Event Handling Chapter 8: Subviews and Tiles Chapter 9: Custom Components, Converters, and Validators Chapter 10: External Services Chapter 11: Ajax Chapter 12: Open Source Chapter 13: How Do I . . . Index 

Author(s): David Geary, Cay S. Horstmann
Edition: 2
Publisher: Prentice Hall
Year: 2007

Language: English
Pages: 645

Preface......Page 2
Why JavaServer Faces......Page 10
Software Installation......Page 11
A Simple Example......Page 13
Sample Application Analysis......Page 19
Visual Development Environments......Page 28
JSF Framework Services......Page 30
Behind the Scenes......Page 32
Automation of the Build Process with Ant......Page 37
Definition of a Bean......Page 44
Message Bundles......Page 48
A Sample Application......Page 51
Backing Beans......Page 57
Bean Scopes......Page 58
Configuring Beans......Page 60
The Syntax of Value Binding Expressions......Page 67
Static Navigation......Page 74
Dynamic Navigation......Page 76
Advanced Navigation Issues......Page 87
4 STANDARD JSF TAGS......Page 92
An Overview of the JSF Core Tags......Page 93
An Overview of the JSF HTML Tags......Page 94
Forms......Page 103
Text Fields and Text Areas......Page 107
Buttons and Links......Page 118
Selection Tags......Page 129
Messages......Page 156
Panels......Page 161
The Data Table Tag......Page 168
A Simple Table......Page 169
h: dataTable Attributes......Page 173
Headers and Footers......Page 174
JSF Components in Table Cells......Page 176
Editing Table Cells......Page 180
Styles for Rows and Columns......Page 184
Database Tables......Page 186
Table Models......Page 192
Scrolling Techniques......Page 208
Overview of the Conversion and Validation Process......Page 212
Using Standard Converters......Page 214
Using Standard Validators......Page 224
Programming with Custom Converters and Validators......Page 230
Implementing Custom Tags......Page 255
7 EVENT HANDLING......Page 280
Life- Cycle Events......Page 281
Value Change Events......Page 282
Action Events......Page 288
Event Listener Tags......Page 297
Immediate Components......Page 299
Phase Events......Page 303
Putting It All Together......Page 311
Common Layouts......Page 322
A Book Viewer and a Library......Page 323
The Book Viewer......Page 325
Content Inclusion in the Book Viewer......Page 334
The Library......Page 345
9 CUSTOM COMPONENTS......Page 358
Implementing Custom Components with Classes......Page 359
Encoding: Generating Markup......Page 365
Decoding: Processing Request Values......Page 369
Implementing Custom Component Tags......Page 374
Revisiting the Spinner......Page 385
Encoding JavaScript to Avoid Server Roundtrips......Page 403
Using Child Components and Facets......Page 408
Accessing a Database......Page 438
Using LDAP for Authentication......Page 454
Managing Configuration Information......Page 465
Using Web Services......Page 499
Rendering Technologies for Mobile Clients......Page 512
MIDP Basics......Page 514
Mobile Communication and Control Flow......Page 522
Component Implementation for Mobile Clients......Page 524
The Battleship Game......Page 535
Web User Interface Design......Page 568
Validation......Page 607
Programming......Page 624
Debugging and Logging......Page 637