O'Reilly logo

PrimeFaces Beginner's Guide by K. Siva Prasad Reddy

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

Time for action – creating the Breadcrumb menu

Let us see how to create a Breadcrumb menu, by performing the following step:

  1. 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, ...

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