[jboss-user] [JBoss Seam] - Re: Themes question

chris@dvdb.de do-not-reply at jboss.com
Sat Sep 1 08:24:17 EDT 2007


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



More information about the jboss-user mailing list