Active 5 years, 4 months ago. Viewed 11k times. Improve this question. R D R D 1 1 gold badge 2 2 silver badges 8 8 bronze badges.
Add a comment. Active Oldest Votes. Improve this answer. The Overflow Blog. Who owns this outage? Building intelligent escalation chains for modern SRE. FileDownload is used by attaching it to any JSF command component like button or a link. Additionally presentation of download can be configured with the contentDisposition attribute that takes either "attachment" or "inline" as a value. Get Started Documentation Content Security. Icons v5.
Growl Messages StaticMessage. Basic Bean Custom Event. Basic Data Message Nested. Terminal Basic Autocomplete. When we click on the button, the onClick activates the javaScript version of the RemoteCommand and initiates a AJAX partial page refresh of the screen. On the other hand, the click on the button also initiates the ActionListener of the FileDownload component to perform the file download.
Since we where able to initiate 2 calls, we can perform 2 actions, the download and the screen update. With the help of the FileDownload component it becomes easier to program the download of a static or dynamic file in JSF.
You no longer need a servlet to perform these kind of actions. With the help of the very broad useable RemoteCommand component, we can even initiate 2 actions. The file download and some screen updates. No comments:. Newer Post Older Post Home.
0コメント