I'm add user defined image commandbutton button its not working.I try to below code:
<p:commandButton id="addMoreButton" value=""
action="#{ContactDetails.addMoreButtonAction}" image="#{General.image}"/>
In replace of image to use icon attribute icon="addMoreImageButton" but it also not working. css:
.addMoreImageButton
{
background-image: url("#{GeneralPageAttributes.addMoreImageButton}");
}
I need only image in button not text then what attribute to choosen it.