Gracelets - JBoss Seam Extension SourceForge.net Logo
Since Gracelets has its own framework for variable resolution and its own variable Factory framework as well and its own version of variable scopes (request, coversation, session, etc.,) it was necesary for an extension to be written to integrate JBoss Seam's implementation of these abstract concepts. Also, this is benefical in order to make sure that Gracelet declared factories be injectable into JBoss Seam components.

There is one simplification here in that you do NOT declare the SeamListener, nor the SeamFilter in the web.xml. Gracelets will take care of initializing seam for you. For a basic JBoss Seam setup, you only need to put the JBoss Seam jars and the Gracelets JBoss Seam Extension into your web application WEB-INF/lib directories and Gracelets will initialize the setup as long as you have Gracelets correctly setup in your web.xml.

You do NEED to declare any optional JBoss Seam servlets, like the DocumentServlet for example.

If you are using RichFaces along with Seam, you will need to add the appropriate settings for rich faces like so:

web.xml fragment for Rich Faces/Gracelets
Toggle Line Numbers
1     <context-param>  
2         <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>  
3         <param-value>gracelets.api.jsf.GraceletsViewHandler</param-value>  
4     </context-param>