Home > Store > Programming > Java
Core JavaServer™ Faces, 2nd Edition
- By David Geary, Cay S. Horstmann
- Published May 9, 2007 by Prentice Hall. Part of the Sun Core Series series.
- Copyright 2007
- Dimensions: 7x9-1/4
- Pages: 752
- Edition: 2nd
- Book
- ISBN-10: 0-13-173886-0
- ISBN-13: 978-0-13-173886-7
- eBook (Watermarked)
- ISBN-10: 0-13-234346-0
- ISBN-13: 978-0-13-234346-6
Register your product to gain access to bonus material or receive a coupon.
Product Author Bios
David Geary, who worked at Sun Microsystems from 1994 through 1997, was a member of the JSF 1.0 Expert Group. He is president of Clarity Training Inc., a training and consulting company focusing on server-side Java technology, and is the author of eight books on Java technology, including the best-selling Graphic Java™ 2 series, Advanced JavaServer Pages, and Google™ Web Toolkit Solutions (all from Prentice Hall). David was also a member of the JSTL Expert Group, was the Second Apache Struts committer, and wrote questions for Sun's Web Developer Certification Exam. David is a regular speaker on the popular No Fluff Just Stuff tour and is a JavaOne Rock Star, by virtue of his Shale Presentation with Craig McClanahan in 2005.
Cay S. Horstmann is a professor of computer science at San Jose State University. He has served as vice president and chief technology officer of Preview Systems Inc., and as a consultant on C++, Java, and Internet programming for major corporations, universities, and organizations. Cay is also the author of the classic Core Java™ books.
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
|
3 of 3 people found the following review helpful
This review is from: Core JavaServer(TM) Faces (2nd Edition) (Paperback)
I found myself in a situation where I had to come up to speed quickly on JSF. Of the 3 books I found on Amazon (the other two being an O'Reilly book, JavaServer Faces by Hans Bergsten and the other a "Complete Reference" by Chris Schalk) this was the best. The O'Reilly book is wordy. The information is good but like many Java related tomes, more emphasis is on theory rather than practical application. The reference book had an index that is essentially worthless. This book has a lot of information but it's more difficult to find than it should be. You'd pretty much have to read the entire book to get your money's worth. Not what I look for in a reference.Core Javaserver Faces gets down to business fairly quickly. It gave me the info I needed to fulfill the tasks at hand without being too lengthy. I've had very little Java experience in the past (although I have been a programmer for 20 years) so if I can glean value from this book, I'm sure anyone with programming... Read more
3 of 3 people found the following review helpful
By Jesse (Netherlands, The) - See all my reviews
This review is from: Core JavaServer(TM) Faces (2nd Edition) (Paperback)
I'm disappointed in that the book focuses to much on how to accomplish a task without telling much about the architecture, why and how JSF operates behind the scenes. This results in that you don't exactly know what goes on, and thus don't know how to solve other specific problems. This is primary reason why I'm looking for another book about JSF.The book contains a lot of complete file code. Not necessarily bad, but keep in mind that the book might have less pure written text than you might expect. What I like about the book it doesn't only cover standard JSF, but also well known third party frameworks, like Apache Tiles, Facelets, JBoss Seam. Although again, it's also on that part more a how-to.
1 of 1 people found the following review helpful
By Mirabella (San Fran, USA) - See all my reviews
This review is from: Core JavaServer(TM) Faces (2nd Edition) (Paperback)
This book is just loaded with JSF material. Google is still my first choice for answering JSF questions, but when Google can't do it for me, I can usually find what I'm looking for in here.A good book to have. |
› See all 18 customer reviews...
Table of Contents
Preface xv
Acknowledgments xix
Chapter 1: Getting Started 2
Why JavaServer Faces? 3
Software Installation 4
A Simple Example 6
Sample Application Analysis 12
Development Environments for JSF 21
JSF Framework Services 28
Behind the Scenes 30
Chapter 2: Managed Beans 36
Definition of a Bean 37
Message Bundles 42
A Sample Application 46
Backing Beans 53
Bean Scopes 54
Configuring Beans 57
The Syntax of Value Expressions 64
Chapter 3: Navigation 70
Static Navigation 71
Dynamic Navigation 73
Advanced Navigation Issues 84
Chapter 4: Standard JSF Tags 90
An Overview of the JSF Core Tags 92
An Overview of the JSF HTML Tags 94
Forms 103
Text Fields and Text Areas 108
Buttons and Links 119
Selection Tags 130
Messages 157
Panels 163
Chapter 5: Data Tables 170
The Data Table Tag—h:dataTable 171
A Simple Table 173
Headers, Footers, and Captions 178
JSF Components 182
Editing Table Cells 186
Styles 189
Database Tables 191
Table Models 197
Scrolling Techniques 214
Chapter 6: Conversion and Validation 218
Overview of the Conversion and Validation Process 219
Using Standard Converters 221
Using Standard Validators 233
Programming with Custom Converters and Validators 240
Chapter 7: Event Handling 266
Life Cycle Events 268
Value Change Events 269
Action Events 275
Event Listener Tags 285
Immediate Components 287
Passing Data from the UI to the Server 291
Phase Events 295
Putting It All Together 303
Chapter 8: Subviews and Tiles 314
Common Layouts 315
A Book Viewer and a Library 316
The Book Viewer 318
Content Inclusion in the Book Viewer 328
The Library 339
Chapter 9: Custom Components, Converters, and Validators 354
Classes for Implementing Custom Components 356
Encoding: Generating Markup 362
Decoding: Processing Request Values 366
Implementing Custom Component Tags 372
Revisiting the Spinner 387
Encoding JavaScript to Avoid Server Roundtrips 404
Using Child Components and Facets 408
Implementing Custom Converters and Validators 432
Chapter 10: External Services 450
Database Access with JDBC 451
Configuring a Data Source 457
An Introduction to LDAP 473
Managing Configuration Information 483
Container-Managed Authentication and Authorization 505
Using Web Services 516
Chapter 11: Ajax 528
Ajax Fundamentals 530
JavaScript Libraries 533
Form Completion 534
Realtime Validation 537
Propagating Client-Side View State 542
Direct Web Remoting 543
Ajax Components 546
Ajax4jsf 554
Chapter 12: Open Source 570
Web Flow—Shale 572
Alternate View Technologies—Facelets 585
EJB Integration—Seam 596
Chapter 13: How Do I . . . 610
Web User Interface Design 611
Validation 658
Programming 669
Debugging and Logging 684
Index 699
Preface
Downloadable Sample Chapter
Index
Book
This product currently is not for sale.
eBook (Watermarked)
$47.99
$38.39
This PDF will be accessible from your Account page after purchase and requires the free Adobe® Reader® software to read it.
The eBook requires no passwords or activation to read. We customize your eBook by discretely watermarking it with your name, making it uniquely yours.
Get access to thousands of books and training videos about technology, professional development and digital media from more than 40 leading publishers, including Addison-Wesley, Prentice Hall, Cisco Press, IBM Press, O'Reilly Media, Wrox, Apress, and many more. If you continue your subscription after your 30-day trial, you can receive 30% off a monthly subscription to the Safari Library for up to 12 months. That's a total savings of $199.

