Free Sample
+ Collection

Seam 2.x Web Development

Starting
David Salter

Build robust web applications with Seam, Facelets, and RichFaces using the JBoss application server
$18.00
$39.99
RRP $23.99
RRP $39.99
eBook
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781847195920
Paperback300 pages

About This Book

  • Develop rich web applications using Seam 2.x, Facelets, and RichFaces and deploy them on the JBoss Application Server
  • Integrate standard technologies like JSF, Facelets, EJB, and JPA with Seam and build on them using additional Seam components
  • Informative and practical approach to development with fully working examples and source code for each chapter of the book

Who This Book Is For

This book is for Java EE application developers who are new to Seam and interested in developing with Seam 2.x.

You will need a basic understanding of Java EE and also to be aware of EJB3, although you do not need to know it in any detail. Experience with JBoss AS would be great, but all you really need is to be comfortable using any application server. Knowledge of AJAX and JavaScript would also be beneficial, although it is not necessary.

Table of Contents

Chapter 1: Introduction to Seam
What is Seam?
Why use Seam?
Seam requirements
Installing JBoss Application Server
Starting the JBoss Application Server
Installing Seam
Testing our Seam installation
Summary
Chapter 2: Developing Seam Applications
Seam application architecture
Seam components
Object Injection and Outjection
Example application
Seam data validation
Building and testing the validating Seam calculator
Summary
Chapter 3: Seam Page Flow
Simple navigation
Seam style navigation
A working example
Seam jPDL navigation
Summary
Chapter 4: Facelets
What is Facelets?
Why Facelets? Why not JSP?
Obtaining and installing Facelets
Configuring a web application for Facelets
SeamGen
Creating the Vacation Planner application using SeamGen
Seam debug page
Summary
Chapter 5: Testing Seam Applications
Overview of Seam application testing
TestNG
Component testing
Testing the user interface
Seam component testing
Mocking Seam components
Summary
Chapter 6: RichFaces
Obtaining RichFaces
Configuring an application for RichFaces
RichFaces controls
<rich:modalPanel />
Summary
Chapter 7: Database Persistence
Overview of database persistence
How SeamGen helps with persistence
Persisting Java entities to the database
Retrieving Java entities from the database
Integrating Java entities with Facelets
Relationships between entities
Performing CRUD operations on entities
The Seam application framework
Summary
Chapter 8: Seam Conversations
Component scope
Seam component scope
What are conversations?
Conversation configuration
Natural conversations
Summary
Chapter 9: Seam and AJAX
What is AJAX?
AJAX and the Seam Framework
Configuring Seam applications for Seam Remoting
AJAX4JSF
Summary
Chapter 10: Security
User authentication
User roles
Auditing security events
CAPTCHAs
The Seam identity manager API
OpenID
Summary
Chapter 11: Enterprise Features
Internationalization
URL rewriting
Seam events
PDF document generation
Email
The future of Seam
Summary

What You Will Learn

  • Understand the fundamentals of Seam and why Seam is different from many other web frameworks
  • Develop web applications using the Facelets viewing technology as an advanced replacement for JSF
  • Test all aspects of a Seam application including testing web pages and Seam components
  • Utilize the RichFaces library for developing advanced, rich user interfaces including AJAX technologies for an improved user experience
  • Develop persistent applications using the Java Persistence API (JPA)
  • Build conversational web applications that can run over multiple browser windows and tabs without worrying about storing session data
  • Secure applications using role-based security, CAPTCHA, and OpenId
  • Easily use Facelets to render data as HTML/PDF/RTF/email
  • Use JBoss Tools to rapidly enhance your developer productivity

In Detail

The Seam framework from JBoss allows developers to use JSF, Facelets, EJB, and JPA to write conversational web applications. But you will first have to learn how these standard technologies are integrated using Seam and how they can be built upon using additional Seam components. If you need to build a Java web application fast, but don't have time to learn all these complex features, then this book is for you.

The book provides a practical approach to developing Seam applications highlighting good development practices. It provides a complete walk through to develop Web applications using Seam, Facelets, and RichFaces and explains how to deploy them to the JBoss Application Server. You can start using key aspects of the Seam framework immediately because this book builds on them chapter by chapter, finally ending with details of enterprise functionality such as PDF report generation and event frameworks.

First, the book introduces you to the fundamentals of Seam applications, describing topics such as Injection, Outjection and Bijection. You will understand the Facelets framework, AJAX, database persistence, and advanced Seam concepts through the many examples in the book.

The book takes a practical approach throughout to describing the technologies and tools involved. You will add functionality to Seam applications after you learn how to use the Seam Generator RAD tools and how to customize and fully test application functionality. Hints and tips are provided along the way of how to use Seam and the JBoss Application Server.

Authors

Read More