I installed a custom filter (@Filter(within = 
"org.jboss.seam.web.contextFilter")) and the filter is called as expected. 

I can also get and access the ThemeSelector via                 
Context ctx = new SessionContext(new ServletRequestSessionMap(sreq));
ThemeSelector ts = (ThemeSelector) ctx.get(ThemeSelector.class);

Problem is that I get a NPE when setting a theme. selectTheme throws 


  | java.lang.NullPointerException
  |     at org.jboss.seam.theme.ThemeSelector.select(ThemeSelector.java:87)
  | 

The annotations in my custom filter class are:
@Startup
@Scope(ScopeType.APPLICATION)
@Name("de.dvdb.generic.seam.ThemeFilter")
@Intercept(InterceptionType.NEVER)
@Filter(within = "org.jboss.seam.web.contextFilter")

Is this ok?

- Chris

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080220#4080220

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080220
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to