Announcement Announcement Module
Collapse
No announcement yet.
SessionThemeResolver doesn't resolve on the first request Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • SessionThemeResolver doesn't resolve on the first request

    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

  • #2
    Perhaps no one is actually using this class.

    Comment


    • #3
      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

      Comment


      • #4
        Roger that, will do!

        Comment

        Working...
        X