
January 3rd, 2009 by

Lincoln
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).
Read the rest of this entry »
Posted in JSF, PrettyFaces, Releases |
No Comments »

January 3rd, 2009 by

Lincoln
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.
Read the rest of this entry »
Posted in JSF |
1 Comment »

December 31st, 2008 by

Lincoln
A new major release of the PrettyFaces JSF extension for Bookmarkable/Pretty URLs is now available for download.
Read the rest of this entry »
Posted in JSF, PrettyFaces, Releases |
1 Comment »

December 8th, 2008 by

Lincoln
A new release of the PrettyFaces JSF extension for Bookmarkable/Pretty URLs is now availible for download. This release includes several new features.
Read the rest of this entry »
Posted in JSF, OpenSource, PrettyFaces, Releases |
1 Comment »

November 12th, 2008 by

Lincoln
What makes Pretty URLs in JSF so hard, and so slow?
Speed up development, reduce bandwidth, enhance user experience. This article gives a brief overview of JSF navigation, some of the problems, and potentially how to solve them by enabling bookmarkable, pretty URLs. Put simply… in my view, out of the box, JSF is a web framework designed for web-applications, not designed for web-sites. PrettyFaces addresses most of these issues.
Target audience for this article:
- The reader is familiar with JSF navigation.
- The reader is attempting to create a JSF app with bookmarkable “pretty” URLs. E.g.: …/mysite/archives/2008/11/11/
- The reader is familiar with HTTP request/response at a basic level.
Read the rest of this entry »
Posted in JSF, OpenSource, Uncategorized |
16 Comments »

October 16th, 2008 by

Derek
We’ve gotten a good number of comments from Lincoln’s latest post on Spring Security and JSF. A few comments have asked for further code samples on how to get this example working.
We created a runnable project for this example, and it can be downloaded here.
Read the rest of this entry »
Posted in JSF, Java, Spring |
6 Comments »

October 9th, 2008 by

Lincoln
Tutorials – What a nightmare
Everyone seems to be going through hell to get a fully functional JSF login page working with Spring Security (formerly Acegi,) and yes, I did too, but there’s an EASY way to make this happen. And get this:
- It takes just five clear and well written lines of Java code.
First, the solution. Afterwards, the dirty details. (Spring 2.5.2 was used for this example.)
You can find a downloadable working example here. There is also a followup article on post-authentication redirecting, here.
Read the rest of this entry »
Posted in JSF, Java |
58 Comments »

September 18th, 2008 by

Lincoln
Very Simple
In a JSF Reference Implementation, passing global faces messages between pages doesn’t work. It’s not designed that way “out of the box.” Fortunately there is a way to do this, which will even support redirects between pages, forwards through a RequestDispatcher, and also through standard JSF navigation cases.
There is a 5 minute solution to this problem.
Read the rest of this entry »
Posted in JSF, Java |
11 Comments »

September 9th, 2008 by

Lincoln
Tutorial – Step By Step
If you’ve learned to use JSF Facelets to create on-the-fly, simple components using XHTML, then you probably have a whole slew of custom components that need to be copied between various projects, and can be somewhat painful to keep up to date. You may have tried to move them into a jar file, but Facelets can’t find them there (without some help from us.)
*The author of this article has requested feedback on the usability of this article. Please post questions, improvements, and/or comments.
Read the rest of this entry »
Posted in JSF, OpenSource |
18 Comments »

August 24th, 2008 by

Lincoln
A4J:Form is missing several specified ajax functions
(View this issue on the JBoss tracker here. Keep reading, there is a fix… download fix)
The issue:
When using the a4j:form component, the data=”#{managedBean.property}” the properties defined in the data element list are supposed to be available after the a4j event in the data JavaScript variable; however, with <a4j:form> the attribute is not correctly causing the JavaScript data variable to be populated.
Read the rest of this entry »
Posted in JSF, OpenSource |
No Comments »