Creating tab-based menus using TabMenu
TabMenu is a navigation component that displays menuitems as tabs. TabMenu takes a list of menuitems and displays each as a tab. Similar to other menu components, we can do GET requests to MenuItem using the url
or outcome
attributes and can send POST requests using the action
or actionListener
attributes.
In the TechBuzz application, we will be using the TabMenu component to display a top-level navigation bar to display the Home, Post Buzz, Search, and My Account screens as tabs.