HAPPY BOOKSGIVING
Use code BOOKSGIVING during checkout to save 40%-55% on books and eBooks. Shop now.
Register your product to gain access to bonus material or receive a coupon.
A new edition of this title is available, ISBN-10: 0137129394 ISBN-13: 9780137129393
Discover JBoss Seam: the Unified Framework for Simpler, More Powerful Web Development
JBoss Seam integrates EJB 3.0 and JSF components under a unified framework that simplifies and accelerates Java EE web development. Now, JBoss Seam’s project leader and technology evangelist take you inside this powerful new technology, showing exactly how to put it to work.
Michael Yuan and Thomas Heute show how JBoss Seam enables you to create web applications that would have been difficult or impossible with previous Java frameworks. Through hands-on examples and a complete case study application, you’ll learn how to leverage JBoss Seam’s breakthrough state management capabilities; integrate business processes and rules; use AJAX with Seam; and deploy your application into production, one step at a time. Coverage includes
How JBoss Seam builds on—and goes beyond—the Java EE platform
• Using the “Stateful Framework”: conversations, workspaces, concurrent conversations, and transactions
• Integrating the web and data components: validation, clickable data tables, and bookmarkable web pages
• Creating AJAX and custom UI components, enabling AJAX for existing JSF components, and JavaScript integration via Seam Remoting
• Managing business processes, defining stateful pageflows, and implementing rule-based security
• Testing and optimizing JBoss Seam applications
• Deploying in diverse environments: with Tomcat, with production databases, in clusters, without EJB 3, and more
* Download source code for this book’s case study application at http://michaelyuan.com/seam/.
www.prenhallprofessional.com
www.jboss.com
About This Book
About the Authors
Acknowledgments
Part I: Getting Started
Chapter 1: What Is Seam?
Chapter 2: Seam Hello World
Chapter 3: Recommended JSF Enhancements
Chapter 4: Rapid Application Development Tools
Part II: Stateful Applications Made Easy
Chapter 5: An Introduction to Stateful Framework
Chapter 6: A Simple Stateful Application
Chapter 7: Conversations
Chapter 8: Workspaces and Concurrent Conversations
Chapter 9: Transactions
Part III: Integrating Web and Data Components
Chapter 10: Validate Input Data
Chapter 11: Clickable Data Tables
Chapter 12: Bookmarkable Web Pages
Chapter 13: The Seam CRUD Application Framework
Chapter 14: Failing Gracefully
Part IV: AJAX Support
Chapter 15: Custom and AJAX UI Components
Chapter 16: Enabling AJAX for Existing Components
Chapter 17: Direct JavaScript Integration
Part V: Business Processes and Rules
Chapter 18: Managing Business Processes
Chapter 19: Stateful Pageflows
Chapter 20: Rule-Based Security Framework
Part VI: Testing Seam Applications
Chapter 21: Unit Testing
Chapter 22: Integration Testing
Part VII: Production Deployment
Chapter 23: Java EE 5.0 Deployment
Chapter 24: Seam Without EJB3
Chapter 25: Tomcat Deployment
Chapter 26: Using a Production Database
Chapter 27: Performance Tuning and Clustering
Appendix A: Installing and Deploying JBoss AS
Appendix B: Using Example Applications as Templates
Index
About This Book xv
About the Authors xvi
Acknowledgments xvii
Part I: Getting Started 1
Chapter 1: What Is Seam? 3
Chapter 2: Seam Hello World 11
Chapter 3: Recommended JSF Enhancements 31
Chapter 4: Rapid Application Development Tools 55
Part II: Stateful Applications Made Easy 75
Chapter 5: An Introduction to Stateful Framework 77
Chapter 6: A Simple Stateful Application 87
Chapter 7: Conversations 99
Chapter 8: Workspaces and Concurrent Conversations 117
Chapter 9: Transactions 127
Part III: Integrating Web and Data Components 135
Chapter 10: Validate Input Data 137
Chapter 11: Clickable Data Tables 149
Chapter 12: Bookmarkable Web Pages 157
Chapter 13: The Seam CRUD Application Framework 169
Chapter 14: Failing Gracefully 183
Part IV: AJAX Support 195
Chapter 15: Custom and AJAX UI Components 197
Chapter 16: Enabling AJAX for Existing Components 211
Chapter 17: Direct JavaScript Integration 225
Part V: Business Processes and Rules 243
Chapter 18: Managing Business Processes 245
Chapter 19: Stateful Pageflows 267
Chapter 20: Rule-Based Security Framework 277
Part VI: Testing Seam Applications 289
Chapter 21: Unit Testing 291
Chapter 22: Integration Testing 303
Part VII: Production Deployment 311
Chapter 23: Java EE 5.0 Deployment 313
Chapter 24: Seam Without EJB3 319
Chapter 25: Tomcat Deployment 333
Chapter 26: Using a Production Database 345
Chapter 27: Performance Tuning and Clustering 351
Appendix A: Installing and Deploying JBoss AS 365
Appendix B: Using Example Applications as Templates 371
Index 387