Results 1 to 4 of 4

Thread: SessionThemeResolver doesn't resolve on the first request

  1. #1
    Join Date
    Aug 2004
    Posts
    15

    Default 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. #2

    Default

    Perhaps no one is actually using this class.

  3. #3
    Join Date
    Aug 2004
    Location
    Toronto, Canada
    Posts
    736

    Default

    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

  4. #4

    Default

    Roger that, will do!

Similar Threads

  1. Replies: 17
    Last Post: Jan 2nd, 2007, 01:43 PM
  2. Hibernate Long Session Per Flow?
    By akw in forum Web Flow
    Replies: 21
    Last Post: Dec 12th, 2005, 08:06 PM
  3. Cannot compile JasperReports
    By wfcheang in forum Web
    Replies: 6
    Last Post: Dec 5th, 2005, 01:46 AM
  4. Replies: 9
    Last Post: Nov 1st, 2005, 10:36 PM
  5. Context initialization failed
    By kanonmicke in forum Container
    Replies: 7
    Last Post: Sep 29th, 2005, 12:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •