In this chapter, we have learned how to create and use menus declaratively and programmatically. We have seen how to create simple menus using the Menu component, and multilevel menus using the TieredMenu and SlideMenu components. We also looked into creating horizontal navigation menus using the Menubar and MegaMenu components. We learned how to create ContextMenu and attach it to various other JSF components such as DataTable and Tree. Finally, we learned how to create Breadcrumb menus to display current contextual location of the page hierarchy.
In the next chapter, we will look into drawing various types of charts, such as Line, Bar, and Pie charts, and exporting them as images.