I'm running spark and I'm trying to display an image in the menubar.
My layoutmenu.xhtml:
Code: Select all
<ps:menu>
<f:facet name="options">
<p:commandButton type="button" icon="fa fa-envelope Fs18 white" class="Fright"/>
</f:facet>
<p:menuitem value="" icon="myIcon" outcome="index"/>
<p:separator />
.....
Code: Select all
<h:outputStylesheet library="css" name="style.css"/>
Code: Select all
.myIcon{
background-image:url("#{resource['images/logo.gif']}") !important;
height: 15px;
width: 15px;
}
Thx for help!