JSF and Spring are two excellent tools for J2EE development. Getting them to work together, however, can be a bit of fun. A cool library for integrating the two has been made available, however, and makes this task a fairly trivial one.
Simply download it here: JSF Spring Library.
Then in your web.xml, add the following:
[code lang=”java”]
de.mindmatters.faces.spring.support.RequestHandledFilter
Now you should be able to access Spring beans from within JSF pages, as though they were part managed by JSF.
RSS feed for comments on this post · TrackBack URI
Leave a reply