I'm going to map external resources (files) to JSF form. I need to download file on button click. In normal html site I just use
<a href="http://asdas/resource/file.jpg" download="MyImage">Download image</a>
. Does JSF / Primefaces support download
attribute?
Asked
Active
Viewed 178 times
2

Jasper de Vries
- 19,370
- 6
- 64
- 102

minizibi
- 653
- 3
- 13
- 28
-
1What exactly stops you from just using the `` element? Plain HTML works just fine in a JSF file. – BalusC May 16 '19 at 11:46
-
See https://stackoverflow.com/questions/23600823/pure-html-5-tag-support-in-jsf-2 – Jasper de Vries May 16 '19 at 11:47