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 SlideMenu component

Let us see how we can create a SlideMenu, by performing the following step:

  1. Create SlideMenu with multilevel submenus using <p:slideMenu> declaratively:
    <p:slideMenu style="width:180px"> <p:submenu label="User Management" icon="ui-icon-person"> <p:submenu label="View Users"> <p:menuitem value="Moderators" outcome="slideMenu"/> <p:menuitem value="Normal Users" actionListener="#{menuController.showUserManagement()}"/> </p:submenu> <p:menuitem value="Monitor User Activity" actionListener="#{menuController.showUserActivity()}" ajax="false"/> </p:submenu> <p:submenu label="Tag Management" icon="tag-icon"> <p:menuitem value="View Tags" url="slideMenu.jsf"/> <p:menuitem value="Tag Stistics" outcome="slideMenu"/> ...

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