In this post you can find the examples from the presentation “Challenges of JSF Web Site Development” held by Yours Truly at theĀ JSFDays2009 conference in Vienna, Austria. The slides will also be made available after the conference.
minicms
Download: minicms.zip (3.3M)
Prerequisites: Java 1.5+, Maven 2
Instructions:
- Unpack into a local directory
- cd minicms
- mvn install
- cd war
- mvn jetty:run
Note for those that attended the session: the ResourceResolver in minicms is actually different from the one presented in the slides, it is based on temporary files that are updated by a servlet filter. The main reason is that when I wrote minicms I hadn’t yet discovered the more elegant approach using a URLStreamHandler as described in the slides. If time permits, I’ll update the minicms ResourceResolver. This would make the Filter obsolete and also make caching easier (and it’s probably faster, too).
JSF web site development examples
Download: jsfdays09-website-examples.zip (17.4M)
Prerequisites: Java 1.5+, Apache Ant
This package contains examples covering the following areas:
- Accessibility: MyFaces Trinidad
- Accessibility: Yahoo UI (progressive enhancement)
- Dynamic templates (Facelets ResourceResolver)
- RESTful URLs: PrettyFaces
- RESTful URLs: PrettyUrlPhaseListener (Mojarra)
- RESTful URLs: RestFaces
- RESTful URLs: UrlRewriteFilter
Instructions:
- Unpack into local directory
- cd jsfDays09
- ant
Deploy any of the generated WAR files to a web container like Tomcat.
Who said JavaEE servers have to be resource hogs? It turns out that the combination of Jetty, OpenEJB and H2 mentioned in the