Seam 2 Web Development: LITE

Seam 2 Web Development: LITE
eBook: $9.99
Formats: PDF, PacktLib, ePub and Mobi formats
save 15%!
Print + free eBook + free PacktLib access to the book: $29.98    Print cover: $19.99
save 33%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Table of Contents
Sample Chapters
  • Focusses on 3 key areas of development with Seam – testing, persistence and security
  • Test your site to ensure efficiency 
  • Learn how to develop persistent applications 
  • Secure your web application with user authentication and OpenID.

Book Details

Language : English
Paperback : 104 pages [ mm x mm ]
Release Date : May 2011
ISBN : 1849516367
ISBN 13 : 9781849516365
Author(s) : David Salter
Topics and Technologies : All Books, Web Development, Lite Editions

Table of Contents

Chapter 1: Testing Seam Applications
Chapter 2: Database Persistence
Chapter 3: Security
  • Chapter 1: Testing Seam Applications
    • Overview of Seam application testing
    • TestNG
    • Component testing
    • Testing the user interface
    • Seam component testing
    • Mocking Seam components
    • Summary
    • Chapter 2: 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
        • One-to-one relationships
        • One-to-many and many-to-one relationships
        • Many-to-many relationships
      • Performing CRUD operations on entities
      • The Seam application framework
        • Home objects
          • Accessing home objects from Facelets
          • XML definition of home objects
        • Query objects
          • Accessing query objects from Facelets
          • XML definition of query objects
      • Summary
      • Chapter 3: Security
        • User authentication
          • Security authenticator
            • Persisting user information
            • Creating an authenticator
            • Securing web pages
            • Creating a logon form
            • Redirecting to the requested page after login
        • User roles
          • Implement a role class
          • Add required Seam annotations
          • Assign a set of roles to a user
          • Restricting user interface access via roles
        • Auditing security events
        • CAPTCHAs
        • The Seam identity manager API
          • Creating a user with the identity manager
          • Specifying security rules
          • Defining security roles with rules
        • OpenID
          • Configuring a Seam web application to support OpenID
          • Configure an OpenID phase listener
          • Ensure that the correct JAR files are on the application's classpath
          • Write a Logon form
          • Configure page redirection after an OpenID logon
          • The OpenID logon process
        • Summary

        David Salter

        David Salter is an enterprise software developer who has been developing software professionally since 1991. His relationship with Java goes right back to the beginning, using Java 1.0 to write desktop applications and applets for interactive websites.

        David has been developing Enterprise Java applications using both the Java EE standards and open source solutions for the last 10 years.

        David is the co-author of Building SOA-based Composite Applications using NetBeans and the author of Seam 2.x Web Development.

        Sorry, we don't have any reviews for this title yet.

        Submit Errata

        Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

        Sorry, there are currently no downloads available for this title.

        Compare Books

        See which product is right for you

        Seam 2 Web Development: LITE Seam 2.x Web Development

        Lite Edition

        Learn more

        Full Edition

        Learn more
        Learn about testing, persistence, and security for your Seam applications
        Test your site to ensure efficiency
        Learn how to develop persistent applications
        Secure your web application with user authentication and OpenID
        eBook available as PDF downloads
        eBook available as ePub downloads
        Available on PacktLib
        Develop a complete rich web application using Seam 2.x, Facelets, and RichFaces, and then deploy it on the JBoss Application Server
        Price £12.99

        Frequently bought together

        Seam 2 Web Development: LITE +    Java Persistence with MyBatis 3 =
        50% Off
        the second eBook
        Price for both: £11.15

        Buy both these recommended eBooks together and get 50% off the cheapest eBook.

        What you will learn from this book

        • Test all aspects of your Seam application including the web pages and components
        • Develop persistent applications using the Java Persistence API (JPA)
        • Secure applications using role-based security, CAPTCHA, and OpenID
        • Create a logon form and an authenticator to ensure your site’s security from bogus users
        • Discover the Seam identity manager API
        • Configure your application to support OpenID 

        In Detail

        The Seam framework from JBoss allows developers to use JSF, Facelets, EJB, and JPA to write conversational web applications. Testing, securing, and database persistence are the most important topics to learn if you want an application that runs quickly, efficiently and securely.

        Seam 2 Web Development LITE provides a practical approach to developing Seam applications highlighting good development practices. The book zooms in on specific topics of Seam development: database persistence, component testing, and user authentication. 

        To find out more about upgrading to the full edition, visit and log into your account for offers and help. If you don’t have an account on, visit today and set one up!


        Packed with illustrations and examples, this book will make the task of improving your Seam application simple and straightforward.

        Who this book is for

        This book is for Java EE application developers who have a Seam web application set up and ready to go, and are looking for information on the key areas of Seam that this book covers.  

        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.

        Code Download and Errata
        Packt Anytime, Anywhere
        Register Books
        Print Upgrades
        eBook Downloads
        Video Support
        Contact Us
        Awards Voting Nominations Previous Winners
        Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
        Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software