In p:button in need add my own image(any image which i want to include).
`<p:button icon="ui-icon-star" title="Icon Only">
</p:button>
`Can i add like this
<p:button icon=""/images/someimage.png"" title="Icon Only">
</p:button>`
In p:button in need add my own image(any image which i want to include).
`<p:button icon="ui-icon-star" title="Icon Only">
</p:button>
`Can i add like this
<p:button icon=""/images/someimage.png"" title="Icon Only">
</p:button>`
The icon attribute of <p:button>
needs a CSS class, you can not give it a image path. Example:
PrimeFaces button:
<p:button icon="my-icon" />
CSS:
.my-icon {
background-image: url("images/myicon.png");
}