O'Reilly logo

PrimeFaces Cookbook by Mert Çalışkan, Oleg Varaksin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

TieredMenu – submenus in nested overlays

A tiered menu displays nested submenus as overlays. Tiered menu features the same common behaviors as every PrimeFaces' menu—it consists of (nested) submenus and menu items that can be built declaratively or programmatically by model. The main difference to a default menu described in the Static and dynamic positioned menus recipe of this chapter is displaying with overlays. Positioning of the tiered menu is static by default, but it can also be positioned relative to a trigger that shows the menu.

In this recipe, we will develop static and dynamic tiered menus. A dynamic tiered menu will be shown after a click on a button acting as the trigger. Furthermore, we will learn about the auto-display feature. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required