JSF, Ajax and file download

Today i show you a example which combines Ajax (Richfaces) and a “normal” Download in a JSF application.
The bean for the download-code is here:

public class DownloadBean {

// actionListener="#{bean.execute}"
public void execute (ActionEvent event) {
download();
}

// action="#{bean.download}"
public String download() {
final FacesContext [...]

Fileupload mit Richfaces

This article shows the usage of a tomahawk-fileupload with richfaces and facelets. The result is a upload-formular where the upload-button is disabled until the user select a file. All this can be done without any line self hacked javascript-code
The upload-button depends on a bean-property ‘uploadedFilename’ which is sync via AJAX.
So it is possible [...]