Book Image

Oracle ADF Faces Cookbook

By : Amr Ismail Gawish
Book Image

Oracle ADF Faces Cookbook

By: Amr Ismail Gawish

Overview of this book

Table of Contents (18 chapters)
Oracle ADF Faces Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Creating declarative ADF Faces component


Declarative components are reusable, composite UI components that are made up of other existing ADF Faces components.

When you have a common component that you want to use multiple times consistently, declarative components can be of great help and can be useful instead of copying and pasting the same components over and over again and risk change management.

In this recipe, we will create two components, namely, a red button and a blue button. You can continue from the last recipe, or you can grab this project's recipe by cloning the CreateDeclarativeComponent application from the Git repository.

How to do it…

To know how to create declarative ADF Faces component, perform the following steps:

  1. Right-click on the ViewController project, select New by navigating to Gallery | JSF/Facelets | ADF Declarative Component, and click on OK.

  2. Change Declarative component name to blueButton.

  3. Change the path of the directory to be placed inside the components directory...