Book Image

PrimeFaces Cookbook

Book Image

PrimeFaces Cookbook

Overview of this book

Table of Contents (20 chapters)
PrimeFaces Cookbook Second Edition
Credits
Foreword
Foreword
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Introduction


PrimeFaces has an impressive number of components that are usually suitable for both common and advanced use cases. It is almost impossible to cover all scenarios in just one book and discuss all solutions for each case. The key aspect of this chapter consists in giving users tips that can be applied quickly for often-raised questions. In this chapter, we will go beyond the basics and introduce more interesting features of the PrimeFaces library. We will learn about RequestContext, a helpful utility that allows you to mark components as updatable targets at runtime, add AJAX callback parameters; open external pages in dynamically generated dialogs—Dialog Framework—and much more. We will also develop a couple of real-world samples for common tasks such as blocking UI during AJAX calls, controlling form submission, periodic polling, focus handling, menus within the layout units and nested panels, targetable messages, sticky components, cached content, and exception handling.