How to define background for <p:menubar>
in Primefaces
<p:menubar rendered="#{loginBO.flag=='admin'}" autoSubmenuDisplay="True" style="background-image: url('images/ui-bg_gloss-wave_55_5c9ccc_500x100_png.png')">
<p:menuitem value="Home" url="/RMGHome.xhtml" icon="ui-icon-home" />
<p:menuitem value="Filter Search" action="#{leftMenuService.getMenuList}" icon="ui-icon-search" />
</p:submenu>
Like this:
.ui-menubar,.ui-menu-child,.ui-menu {
background: #004e8e !important;
}