How can I add an image via style class inside a h:outputText ? Below is my code :
<h:outputText styleClass="postprocessedtick" rendered="#{filteredDump.postProcessed == 'YES'}" />
and the styleclass is as :
.postprocessedtick
{
background-image: url(resources/images/yes.png);
height: 25px;
width: 25px;
}
I know primefaces provides a p:graphicimage tag as well but for some reason that I can't explain here, I need to do it in a outputText. I checked in the inspect element, I can see the style class applied to it as well the image link is also fine. I tried using !important as well but doesn't work.