Image does not appear in the project

0

Good morning, I'm trying to put a pdf icon in my project, but the same does not appear. I'm using f: facet this way.

   <h:commandLink>
       <p:graphicImage name="/resources/img/pdf.png"/>
    <p:dataExporter type="pdf" target="tbl" fileName="pdf" />
   </h:commandLink>

the image is in src / main / webapp / resources / img / pdf.png

But the same does not render on the page

    
asked by anonymous 16.02.2018 / 13:23

1 answer

0

. JSF 2.x graphicImage In JSF 2.0 , you can render the image above through the concept of " resource library ".

<h:commandLink>
    <h:graphicImage library="img" name="pdf.png"/>
    <p:dataExporter type="pdf" target="tbl" fileName="pdf" />
</h:commandLink>

link

    
16.02.2018 / 13:35