0

Can someone please tell me how I would add an image value to this code instead of a text value?

<h:commandLink 
    action="#{gridHandlerXml.removeLinesFromGroups}"
    render="quote-table, totalPanel, revisionTabs" execute="@this"
    disabled="#{currentQuote.convertInProgress}" 
    onclick="#{rich:component('fcprocessing:processingpopup')}.show()" 
    oncomplete="#{rich:component('fcprocessing:processingpopup')}.hide()" />
kolossus
  • 20,559
  • 3
  • 52
  • 104

1 Answers1

1

Quite straightforward: Just embed an an h:graphicImage in the command link:

<h:commandLink action="#{gridHandlerXml.removeLinesFromGroups}">
    <h:graphicImage url="resources/path/to/your/image"/>
</h:commandLink>
BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
kolossus
  • 20,559
  • 3
  • 52
  • 104