Hi,
I have some problem to insert an image to a <p:commandButton>.
Someone can show me a complete example?
My situation is:
IDE: NetBeans 7.1
Primefaces v. 2.2.1
<project>
/web Pages/resources/css/images.css
/Web pages/resources/images/Save.png
The file images.css contains only:
.save{
background-image: url("images/Save.png") !important;
}
in the
JSF page:
....
<h:head>
<title>Inserimento Persona</title>
<h:outputStylesheet name="css/jsfcrud.css"/>
<h:outputStylesheet name="css/images.css"/>
</h:head>
....
<p:toolbar>
<p:toolbarGroup align="left">
<p:commandButton type="button" image="save"/>
</p:toolbarGroup>
</p:toolbar>
Where is the error(s)?
Thank you.