How to add image in headerText attribute of <p:column>
?
<p:dataTable id="tableId" var="list" value="#{beanRequest.list}" >
<p:column headerText="Date">
<h:outputText value="#{list.date}" />
</p:column>
p:column headerText="A">
<h:outputText value="#{list.a}" />
</p:column>
<p:column headerText="????????image here?????????">
<h:outputText value="#{list.b}"/>
</p:column>
</p:dataTable>
Use <f:facet name="header">
instead to specify non-simple-text content.
<p:column>
<f:facet name="header">
<h:graphicImage name="weather.png" />
</f:facet>
...
</p:column>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With