Introducing the Menu component
Menu is a navigation component that can contain menuitems or submenus. We can create a Menu component either in declarative or programmatic way. In many of the web applications, there would be a left-hand side navigation bar that contains all the navigation links grouped according to related actions. To create such a navigation menu, we can use the <p:menu>
component.