1

In any of the JSF libraries, is there any component which works just opposite to <t:inputFileUpload>, to select the folder (@ client machine) and download a predefined file from the server to client machine's selected folder?

R K
  • 1,283
  • 1
  • 14
  • 41

2 Answers2

1

It is the browser that shows the browse dialog whenever there's a file it cannot handle.

And files it can't handle are determined by the Content-type. So set your Content-Type, Content-Disposition and the likes headers for a specific resource, and add a link to that resource.

This answer has an example.

Community
  • 1
  • 1
Bozho
  • 588,226
  • 146
  • 1,060
  • 1,140
0

You just need to give url to File in <a> tag if it is in public space

jmj
  • 237,923
  • 42
  • 401
  • 438