Book Image

Oracle ADF Faces Cookbook

By : Amr Gawish, Amr Ismail Gawish
Book Image

Oracle ADF Faces Cookbook

By: Amr Gawish, Amr Ismail Gawish

Overview of this book

Table of Contents (18 chapters)
Oracle ADF Faces Cookbook
About the Author
About the Reviewers

Enhancing the Faces messages user experience

All application messages are thrown as a dialog to the end user, which can be irritating sometimes. Oracle ADF Faces provides a great way of customizing this behavior by using the af:messages component.

In this recipe, we will edit the page template and add af:messages inside it. Then, we will add some CSS styles in the hrBlue.css skin file to enhance how messages look. Finally, we will add a button inside the employees.jsf to showcase different message types.

You can continue from the previous recipe, or you can grab this project's recipe by cloning the EnhancingFacesMessageUX application from the Git repository.

How to do it…

To know how to enhance the Faces messages experience, first we will add the af:messages component inside the page template, and then we will perform the following steps:

  1. Open the defaultHrTemplate.jsf page template from the application navigator.

  2. Go to af:panelStretchLayout | f:facet – center and select af:facetRef – Center from...