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

Using menus, toolbars, and toolboxes

Menu bars and toolbars allow you to organize menus, buttons, and other simple components in a horizontal bar. Menus can be nested to show multiple levels and hierarchical data. At the leaf of the hierarchy, each menu item can trigger an action or redirect completely.

In this recipe, we will create a single page to showcase the menu of a system similar to the file explorer, where the buttons will not be perform any actions; this page will just be an example. You can resume from the previous recipe, or you can grab the ADFFacesMenus application from the Git repository.

How to do it...

To add menus, toolbars, and toolboxes, follow the ensuing steps:

  1. Open the adfc-config.xml file.

  2. Drag-and-drop a view activity inside the diagram and name it fileExplorerMenu.

  3. Double-click on the view activity to create the JSF page, and then choose Oracle Three Column Layout as a template.

  4. Drag-and-drop the Toolbox component from the Components palette (you will find it under Menus...