How to show an icon with commandLink:
<p:commandLink
styleClass="ui-icon ui-icon-plus"
action="#{bean.doSomething}" >
<h:outputText value="Add" />
</p:commandLink>
The outputText (Add) is not visible. What is the right way for commandLink to support icon? Thanks.
You should remove
styleClassand use agraphicImagewith a text :