Announcement Announcement Module
No announcement yet.
Spring Web Flow and Remote Locale Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Web Flow and Remote Locale

    Hi !

    I've got a little problem which i can't solve on my own.

    I'm upgrading my JSF application by replacing my old JSF's Navigation Rules with Spring's flows.

    My app support i18n and my I18nService use the FacesContext to get the remote Locale. But inside a flow, the FacesContext is not initialized so i cannot get the Locale anymore!

    Is there a better way to retreive this locale? Maybe with a ServletRequestAware or something like that?

    Thanks in advance (and sorry for my poor English...)!

  • #2
    LocaleContextHolder.getLocale() maybe?