View Full Version : SessionThemeResolver doesn't resolve on the first request
Anonymous
08-11-2004, 04:06 PM
I have a ThemeChangeInterceptor on my handlerMapping that changes the session THEME_SESSION_ATTRIBUTE_NAME if a request param is present. On the very first request of a new session, the SessionThemeResolver always resolves to the default theme rather then the theme specified in the attribute I am setting. After that first request, the theme changes correctly and matches the theme requested each time it is changed via the request parameter.
Any idea what's up with the first request?
Steve
steven.warren
08-13-2004, 10:27 AM
Perhaps no one is actually using this class.
Colin Sampaleanu
08-13-2004, 02:15 PM
Steven,
I haven't personally used this class, but it should work. I took a look at the classes in question but nothing is obviously wrong. The best thing to do is enter this as a possible bug in Jira, so it doesn't get lost, and somebody can actually try to duplicate this when they have time.
One thing you could do yourself is verify the order that the interceptor runs and sets the theme resolver, vs. the RequestContext constructor which sets the current theme, via a call to RequestContextUtils.getTheme(request), by setting some breakpoints.
Colin
steven.warren
08-13-2004, 04:31 PM
Roger that, will do!
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.