Pro JSF and HTML5: Building Rich Internet Components, Second Edition

Book description

Pro JSF and HTML5 shows you how to leverage the full potential of JavaServer Faces (JSF) and HTML5. This book is for Java developers who aspire to build sophisticated, enterprise-grade web experiences with HTML5-enabled JSF. Written by JSF experts and verified by established community figures, this book will serve as your primary resource, helping you build or integrate well-designed HTML5-enabled JSF components into your rich internet applications.

Pro JSF and HTML5 starts by giving you a firm grounding in the design principles of component-based frameworks and the basics of JSF. It then details recent advancements in JSF 2.2 that make it friendlier, faster, and more productive than ever before. And it covers HTML5-enabled components, integration with JEE7 standards, 3rd party component libraries, security, and performance. The book concludes with a real-world application that puts everything you learned into practice.

In this book you'll learn

  • Foundational JSF topics such as the component life cycle, framework architecture, managed beans and CDI, expression language, conversion and validation, JSF events and view parameters.

  • Leveraging new features in JSF 2.2 such as Faces Flow, Resource Library Contracts, and Ajax file uploading.

  • Developing Advanced HTML5 enabled components in JSF 2.2.

  • Creating JSF 2.2 applications that utilize Java EE 7 technologies (CDI, JPA 2.1 and EJB 3.2) for bean management, transaction management and persistence.

  • Building advanced real-world JSF applications with considerations for security, performance, and usability.

  • If you're a Java developer interested in the world of component-based frameworks, Pro JSF and HTML5 is for you.

    What you'll learn

  • Foundational JSF topics such as the component life cycle, framework architecture, managed beans and CDI (Context and Dependency Injection), expression language, exception handling, conversion and validation, JSF events (faces events, phase events and system events), and view parameters.

  • Utilizing new features in JSF 2.2 such as Faces Flow, Resource Library Contracts, and Ajax file uploading.

  • Developing Advanced HTML5 enabled components in JSF 2.2.

  • Developing PrimeFaces and RichFaces applications.

  • Developing JSF 2.2 applications that utilize Java EE 7 technologies (CDI, JPA 2.1 and EJB 3.2) in order to facilitate bean management, transaction management and persistence.

  • Unit testing JSF applications.

  • Stateless JSF views.

  • Implementing Security in JSF applications.

  • Tuning the performance of JSF applications.

  • Translating application requirements into a model and then implementing the model using JSF 2.2 and Java EE 7 technologies.

  • Who this book is for

    This is a tutorial and reference is for both intermediate and experienced Java enterprise and web application developers.

    Table of contents

    1. Title Page
    2. Dedication
    3. Contents at a Glance
    4. Contents
    5. About the Authors
    6. About the Technical Reviewer
    7. Introduction
    8. CHAPTER 1: JSF Introduction
      1. What Is JSF?
      2. JSF Evolution: 1.0–2.2
      3. JSF Architecture
      4. Developing Your First JSF Application
      5. JSF Life Cycle
      6. Summary
    9. CHAPTER 2: JSF Under the Hood—Part 1
      1. Managed Beans
      2. Expression Language
      3. Navigation
      4. Exception Handling
      5. Summary
    10. CHAPTER 3: JSF Under the Hood—Part 2
      1. Conversion and Validation in the JSF LifeCycle
      2. Conversion
      3. Validation
      4. Overriding Standard Messages
      5. Summary
    11. CHAPTER 4: JSF Under the Hood—Part 3
      1. JSF Events
      2. View Parameters
      3. Summary
    12. CHAPTER 5: JSF 2.2: What’s New?
      1. Big Ticket Features
      2. Other Significant Changes
      3. Backwards Compatibility
      4. Summary
    13. CHAPTER 6: Going Deep: JSF Custom Components
      1. Understanding the JSF Component Architecture
      2. The RandomText Custom Component
      3. Summary
    14. CHAPTER 7: Basic JSF2 HTML5 Components
      1. Input Color Custom Component
      2. Input Date Picker Custom Component
      3. Slider Custom Component
      4. Spinner Custom Component
      5. Summary
    15. CHAPTER 8: Advanced JSF2 HTML5 Components
      1. Media Component
      2. Progress Bar Component
      3. Summary
    16. CHAPTER 9: JSF Component Libraries
      1. PrimeFaces
      2. RichFaces
      3. Summary
    17. CHAPTER 10: Creating a Basic JSF 2.2 Application
      1. Structuring Weather Application
      2. Constructing JSF Pages
      3. Leveraging Faces Flow
      4. Composing Managed Beans (JPA Entity Beans)
      5. Application Back End (EJB 3.2 + JPA 2.1)
      6. Summary
    18. CHAPTER 11: JSF2 Advanced Topics
      1. Design Considerations for JSF Applications
      2. Ajaxifying JSF Applications
      3. Testing JSF Applications
      4. Summary
    19. CHAPTER 12: JSF2 Security and Performance
      1. JSF Application Security
      2. JSF Application Performance
      3. Summary
    20. CHAPTER 13: Applying It All: The Mega App
      1. Mega App Specification
      2. Mega App Wireframes
      3. Mega App Architecture
      4. Constructing Data Model
      5. Constructing Service Layer (EJBs)
      6. Composing Page Templates
      7. Composing JSF Pages and Backing Beans
      8. Applying Security
      9. Error Handling
      10. Composing JSF Components
      11. Packaging and Deploying the Mega App
      12. Summary
    21. Index

    Product information

    • Title: Pro JSF and HTML5: Building Rich Internet Components, Second Edition
    • Author(s): Hazem Saleh, Allan Lykke Christensen, Zubin Wadia
    • Release date: November 2013
    • Publisher(s): Apress
    • ISBN: 9781430250104