I really like this component, as it simplifies a part of my application over it's current implementation.
Currently, I am using something with results very similar to the example in the showcase.
Basically the default OS display mechanism comes up with the options of Open, Save, or Cancel.
I have a couple situations where I would prefer to not allow the user to Save the document to the client machine, but just give them the option to view or cancel.
Can I do that with the PrimeFaces p:fileDownload component?
I don't see anything in the documentation or showcase that indicates how I could disable the "Save" option on the OS display dialog.
I'm not sure if this can even be done, but it would definitely be an advantage for my application if I could disable that option.
Thanks.
p:fileDownload
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
There is a contentDisposition attribute to manage the way it is displayed, not sure if it is possible to display only view or cancel though, I guess it is browser specific.
Evaluation of content-disposition is browser specific. There is a good overview http://greenbytes.de/tech/tc2231/cagatay.civici wrote:There is a contentDisposition attribute to manage the way it is displayed, not sure if it is possible to display only view or cancel though, I guess it is browser specific.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin
-
- Information
-
Who is online
Users browsing this forum: No registered users and 21 guests