开发者

JSF File Download Chooser

开发者 https://www.devze.com 2023-03-01 01:34 出处:网络
In any of the JSF libraries, is there any component which works just opposite to <t:inputFil开发者_运维百科eUpload>, to select the folder (@ client machine) and download a predefined file from t

In any of the JSF libraries, is there any component which works just opposite to <t:inputFil开发者_运维百科eUpload>, to select the folder (@ client machine) and download a predefined file from the server to client machine's selected folder?


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消