-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Oracle ADF Faces Cookbook
By :
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.
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:
Open the defaultHrTemplate.jsf page template from the application navigator.
Go to af:panelStretchLayout | f:facet – center and select af:facetRef – Center from...
Change the font size
Change margin width
Change background colour