Rough Cuts are manuscripts that are developed but not yet published, available through Safari. Rough Cuts provide you access to the very latest information on a given topic and offer you the opportunity to interact with the author to influence the final publication.
This is a working draft of a pre-release book. It is available before the published date as part of the Rough Cuts service.
Fully Updated to Cover Major Enhancements to Seam 2.x
In Seam Framework, Second Edition, the authors of the leading guide to Seam programming have systematically updated their text to reflect the major improvements introduced with Seam 2.x. This author team–all key Seam project contributors–teach Seam 2.x through detailed example applications that reveal how Seam simplifies many tasks that were previously difficult or impractical. Their robust descriptions are complemented by in-depth feature discussions that demonstrate how to use Seam’s power to the fullest. Whether you’re new to Seam programming or a seasoned Seam developer who wants to achieve deeper mastery of Seam 2.x, this book will be an indispensable resource.
Coverage includes
*Download source code for this book’s case study application at solutionsfit.com/seam.
About This Book xvii
About the Authors xix
Acknowledgments xxi
Part I: Getting Started 1
Chapter 1: What Is Seam? 3
1.1: Integrating and Enhancing Java EE Frameworks 4
1.2: A Web Framework That Understands ORM 5
1.3: Supporting Stateful Web Applications 6
1.4: Web 2.0 Ready 7
1.5: POJO Services via Dependency Bijection 7
1.6: Convention over Configuration 8
1.7: Avoiding XML Abuse 8
1.8: Designed for Testing 9
1.9: Great Tools Support 10
1.10: Let’s Start Coding! 10
Chapter 2: Seam Hello World 11
2.1: Create a Data Model 13
2.2: Map the Data Model to a Web Form 13
2.3: Handle Web Events 14
2.4: Navigate to the Next Page 15
2.5: EJB3 Bean Interface and Mandatory Method 16
2.6: More on the Seam Programming Model 17
2.7: Configuration and Packaging 20
2.8: How Is This Simple? 25
Chapter 3: Recommended JSF Enhancements 27
3.1: An Introduction to Facelets 28
3.2: Seam JSF Enhancements 34
3.3: Add Facelets and Seam UI Support 38
3.4: PDF, Email, and Rich Text 40
3.5: Internationalization 46
Chapter 4: Seam without EJB3 47
4.1: A Seam POJO Example 47
4.2: Configuration 48
4.3: Packaging 50
4.4: POJO Trade-Offs 52
Chapter 5: Rapid Application Development Tools 53
5.1: Prerequisites 54
5.2: A Quick Tutorial 54
5.3: Working with IDEs 63
5.4: Generating a CRUD Application from a Database 72
5.5: Seam-gen Command Reference 73
Part II: Stateful Applications Made Easy 75
Chapter 6: An Introduction to Stateful Framework 77
6.1: Correct Usage of ORM 77
6.2: Better Performance 79
6.3: Better Browser Navigation Support 81
6.4: Fewer Memory Leaks 82
6.5: High Granularity Component Lifecycle 83
6.6: Reducing Boilerplate Code 84
Chapter 7: Thinking in Components 87
7.1: Stateful Components 87
7.2: Managing Stateful Components 92
7.3: Configuring Components through XML 97
7.4: Page Navigation Flow 99
Chapter 8: Conversations 101
8.1: What Is a Conversation? 102
8.2: Long-Running Conversations 106
