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
加载中,请稍侯......
精彩评论