EnumConverter

Today i found a very simple solution for using a Enumeration with a converter in JSF. Other than Rick Hightowers or Dave Brondsena i used the hidden javax.faces.convert.EnumConverter. Why hidden? I can’t find no reference in the JSF 1.2 documentation. But both implementations MyFaces and SunRI contains such a class. And the class is not [...]

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 [...]

JSF behind reverse proxy

The problem “try to run a jsf application behind a reverse proxy” it will not work if you change the context-path.
Imagine a local deployed jsf application “hello-world.war”. You can start browsing at http://localhost:8080/hello-word/. The browser handles the absolute paths for css and javascript-libs correctly and all forms will work. Remeber that all resource-urls converted to [...]

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 [...]