How would you implement a servlet filter type functionality with seam. I would like to set some values in session before seam processes the http request. (almost like how seam sets Locale, TimeZone etc in session) except in my case would be a domain dependent theme. (each domain name will have it's own look and feel)
I was thinking about creating a custom interceptor, but I don't know if that's the right approach.
You can use the @Filter annotation and to inherit org.jboss.seam.web.AbstractFilter class.
You can take a look to the wiki example project in seam distribution to check a live example. Look for WikiUrlRewriteFilter.java file.