title: How to define background for p:menubar in Primefaces?
body: <p>How to define background for <code>&lt;p:menubar&gt;</code> in Primefaces</p>
  
  <pre><code>&lt;p:menubar rendered="#{loginBO.flag=='admin'}" autoSubmenuDisplay="True" style="background-image: url('images/ui-bg_gloss-wave_55_5c9ccc_500x100_png.png')"&gt;
      &lt;p:menuitem value="Home" url="/RMGHome.xhtml" icon="ui-icon-home" /&gt;
      &lt;p:menuitem value="Filter Search" action="#{leftMenuService.getMenuList}" icon="ui-icon-search" /&gt;
  &lt;/p:submenu&gt;
  </code></pre>