Veröffentlicht in Freitag, 25. April 2008 von Andreas Höhmann
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 [...]
Abgelegt unter : JSF | Getaggt: Converter, Enum, JSF | Keine Kommentare »
Veröffentlicht in Montag, 31. März 2008 von Andreas Höhmann
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 [...]
Abgelegt unter : Computer, JSF | Getaggt: JSF, Facelets, Richfaces, Ajax, File Download, MyFaces | Keine Kommentare »
Veröffentlicht in Freitag, 7. März 2008 von Andreas Höhmann
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 [...]
Abgelegt unter : Computer, JSF | Getaggt: JSF, Richfaces, Reverse Proxy, Apache, View Handler, a4j | Keine Kommentare »
Veröffentlicht in Donnerstag, 17. Januar 2008 von Andreas Höhmann
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 [...]
Abgelegt unter : Computer, JSF | Getaggt: JSF, Facelets, Richfaces, Ajax, File Upload, Tomahawk | Keine Kommentare »