PrimeFaces & OmniFaces - Powers Combined
PrimeFaces & OmniFaces - Powers Combined
About the Book
As you probably know, PrimeFaces is a very popular framework and the ultimate UI framework for Java EE. At the same time, OmniFaces is the most comprehensive JSF utility library that aims to make JSF life easier. In this book, you can exploit a suite of examples that combines these two libraries for obtaining more powerful, robust and less verbose applications. As you will see, there are many situations when the PrimeFaces UIs can take advantage of the OmniFaces help.
About the Contributors
java enthusiast
Table of Contents
- 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
-
Faces messages with multiple client IDs in the
-
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
-
Use
-
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/>
-
Introducing OmniFaces
-
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?
-
Using Java enums in
-
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/>
andpreInvokeAction
/postInvokeAction
event types -
Boost
<f:viewAction/>
via<o:viewAction/>
-
The
-
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
The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.
You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!
So, there's no reason not to click the Add to Cart button, is there?
See full terms...
Earn $8 on a $10 Purchase, and $16 on a $20 Purchase
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earnedover $14 millionwriting, publishing and selling on Leanpub.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them