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.
To add menus, toolbars, and toolboxes, follow the ensuing steps: