Time for action – creating the Breadcrumb menu
Let us see how to create a Breadcrumb menu, by performing the following step:
- Create a Breadcrumb menu and provide navigation menu options using
<p:menuitem>
:<p:breadCrumb> <p:menuitem value="PrimeFaces" url="http://www.primefaces.org/" /> <p:menuitem value="Board index" url="http://forum.primefaces.org/index.php" /> <p:menuitem value="JavaServer Faces" url="http://forum.primefaces.org/viewforum.php?f=19" /> <p:menuitem value="General" url="http://forum.primefaces.org/viewforum.php?f=3" /> </p:breadCrumb>
What just happened?
The preceding code displays the Breadcrumb menu component as shown in the following screenshot:
The preceding Breadcrumb menu component is a static menu. But for many of the web applications, Breadcrumb menus should be dynamic, reflecting their current location in the page...