
January 27th, 2009 by

Lincoln Baxter III
A new minor release of the
PrettyFaces JSF extension for Bookmarkable/Pretty URLs is now available for download.
PrettyFaces is now backwards compatible with Java 5.
Version 1.2.2:
binary,
source

January 3rd, 2009 by

Lincoln Baxter III
It didn’t make it…
Well folks, for those of you who were hoping JSF 2.0 would contain the URL rewriting tools that many had asked for, unfortunately it looks like it’s not going to make it into the official spec. Bookmarking a page, or pages in JSF has been a heavily requested feature, but according to
this discussion, is currently out of scope.
But that’s ok…
The
PrettyFaces JSF Bookmark extension has been updated for JSF 2.0, and is ready for public preview (download below).

January 3rd, 2009 by

Lincoln Baxter III
The Problem:
So you need a way to instantiate the 2.0 FacesContext in a Filter, but when you use the same method that you have in the past, you get NullPointerExceptions all over the place when attempting to access any values through El. The ScopedAttributeElResolver bombs when attempting to set values or access methods in backing beans.) It’s not too hard to get this working again. In fact, this is how our own URL-rewrite filter for JSF handles things behind the scenes.