This content has been marked as final.
Show 5 replies
-
1. Re: How to get a seam components in Filters ?
lundegaard Jan 14, 2008 9:27 AM (in response to alessandrolt)Your web.xml contains the following code?
<filter> <filter-name>Seam Filter</filter-name> <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class> </filter> <filter-mapping> <filter-name>Seam Filter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
See also http://docs.jboss.com/seam/2.0.1.CR1/reference/en/html/configuration.html#d0e13797 -
2. Re: How to get a seam components in Filters ?
alessandrolt Jan 14, 2008 9:51 AM (in response to alessandrolt)Need to access components in "custom" filter of the my application.
I read about "context-filter":
http://docs.jboss.com/seam/2.0.1.CR1/reference/en/html/configuration.html#d0e14020
... but the url-pattern can't conflicting with JSF FacesSerlvet, and my custom filter have mapping for *.seam, equals the JSF FacesServlet.
How to do? -
3. Re: How to get a seam components in Filters ?
alessandrolt Jan 14, 2008 11:29 AM (in response to alessandrolt)It's impossible?
-
4. Re: How to get a seam components in Filters ?
pmuir Jan 14, 2008 11:54 AM (in response to alessandrolt)The Seam context filter does require a different mapping to JSF.
wrap your work in a ContextualHttpServletRequest
new ContextualHttpServletRequest() {
public void process() {
// Do you work
}
}.run(); -
5. Re: How to get a seam components in Filters ?
alessandrolt Jan 14, 2008 12:15 PM (in response to alessandrolt)yeah, worked now !
Thanks Pete