PrimeFaces & OmniFaces - Powers Combined

PrimeFaces & OmniFaces - Powers Combined

Anghel Leonard
This is a sample of the book's content.Buy on Leanpub

Table of Contents

PrimeFaces & OmniFaces - Powers Combined

  • Author
  • Contributor
  • Introduction
  • Chapter 1: Working with faces messages
    • Faces messages with multiple client IDs in the for attribute
    • Show a single custom global message
    • Highlight invalid inputs via custom CSS
  • Chapter 2: Working with links and request parameters
    • Use <p:link/> and <o:param/> to pass objects into generated link
    • Use <p:commandButton/Link/> and <o:param/> to pass objects into managed beans
    • Create complex labels
    • Using <h:outputFormat/> output as input parameter
  • Chapter 3: Working with JavaScript/CSS resources
    • Executing a JavaScript snippet after each AJAX/non-AJAX request
    • Fire AJAX requests from plain JavaScript functions
    • Combining PrimeFaces resources in a single resource
    • Providing external (CDN) URLs instead of the default local URLs for JSF resources
    • Defer loading and parsing of JavaScript resources
    • Reference relative URLs to images in CSS files without #\{resource}
  • Chapter 4: Initializing PrimeFaces components via view parameters
    • Suppressing the invocation of the setter/converter/validator at each postback
    • Supply a label for messages
    • Supply a default value
    • Suppressing invocation of the converter regardless the null values
    • Support bean validation and triggering validate events on null value
  • Chapter 5: Referencing, rendering and moving PrimeFaces components
    • Access a component by using a reference to it
    • Controlling the rendering of components
    • Moving components, facets and behaviors at runtime to a target component
  • Chapter 6: Working with media content
    • Working with images
    • Loading external media content
    • Check if the current request is a PrimeFaces dynamic resource request
  • Chapter 7: Including Servlets/JSP output in JSF page
    • Including a Servlet output in a PrimeFaces component
    • Decorating the Servlet output
  • Chapter 8: Working with forms
    • Introducing OmniFaces Form component
    • Preserving query string over postbacks
    • Preserving view parameters over postbacks
    • Quick look at useRequestURI attribute
    • Ignoring validation failures in <o:form/>
  • Chapter 9: Import constants, interfaces, enums and public static methods
    • Import constants/interfaces via PrimeFaces and OmniFaces
    • Import enums via PrimeFaces and OmniFaces
    • Import public static methods with OmniFaces
  • Chapter 10: Let’s convert data with PrimeFaces and OmniFaces
    • Using Java enums in UISelectMany components
    • The <f:selectitems/> and the conversion of the submitted strings to their values
    • Converting selection components which work directly via a List
    • Working with a converter in an iterating component (e.g. <p:dataTable/>)
    • Passing through conversion only the modified values
    • Discussing converters dependency injection
    • Do you want more built-in converters?
  • Chapter 11: Let’s validate data with PrimeFaces and OmniFaces
    • Display the label of the component where a constraint violation originated from
    • Customize the PrimeFaces client-side bean validation error messages
    • “Force” the user to tick a checkbox
    • Passing through validation only the modified values
    • Validating unique column in UIData
    • Validation control and cross-field validation (class level validation)
    • Multiple field validators
    • Working with a validator in an iterating component (e.g. <p:dataTable/>)
    • Discussing validators dependency injection
    • Entirely skip validation
    • Handling view parameters validation failure
  • Chapter 12: Boost <f:event/> and <f:viewAction/>
    • The <f:event/> and preInvokeAction/postInvokeAction event types
    • Boost <f:viewAction/> via <o:viewAction/>
  • Chapter 13: Caching aspects in PrimeFaces and OmniFaces
    • JSF cient-side caching aspects
    • PrimeFaces and OmniFaces server-side caching aspects
    • Caching HTML markup via PrimeFaces and EHCache
    • Caching HTML markup via PrimeFaces and Hazelcast
    • Caching HTML markup via OmniFaces
    • Add a header with given a name and value to the HTTP response
    • Facelets default non-hot reload in production
    • Further readings
  • Chapter 14: Handling exceptions
    • Handling AJAX exceptions
    • Handling non-AJAX exceptions
    • PrimeFaces vs OmniFaces exception handlers
    • Report exceptions as global FATAL faces messages
  • Chapter 15: Final word
PrimeFaces & OmniFaces - Powers Combined/Overview

PrimeFaces & OmniFaces - Powers Combined

Course overview

Develop astonishing JSF applications by combining the ultimate UI framework for Java EE (PrimeFaces) and the most comprehensive JSF utility library (OmniFaces).

18 chapters
Begin reading
Download
The Book

PrimeFaces & OmniFaces - Powers Combined18 chapters

Begin ›
  1. Author

  2. Contributor

  3. Introduction

  4. Chapter 1: Working with faces messages

  5. Chapter 2: Working with links and request parameters

  6. Chapter 3: Working with JavaScript/CSS resources

  7. Chapter 4: Initializing PrimeFaces components via view parameters

  8. Chapter 5: Referencing, rendering and moving PrimeFaces components

  9. Chapter 6: Working with media content

  10. Chapter 7: Including Servlets/JSP output in JSF page

  11. Chapter 8: Working with forms

  12. Chapter 9: Import constants, interfaces, enums and public static methods

  13. Chapter 10: Let’s convert data with PrimeFaces and OmniFaces

  14. Chapter 11: Let’s validate data with PrimeFaces and OmniFaces

  15. Chapter 12: Boost <f:event/> and <f:viewAction/>

  16. Chapter 13: Caching aspects in PrimeFaces and OmniFaces

  17. Chapter 14: Handling exceptions

  18. Chapter 15: Final word