Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-4279

RendererRequest does not respect the user's locales

    Details

    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Override the LocaleSelector and customize it to return a locale which is stored in a context before the call to Renderer#render()

      Show
      Override the LocaleSelector and customize it to return a locale which is stored in a context before the call to Renderer#render()
    • Estimated Difficulty:
      Medium

      Description

      When Seam sets up the Renderer component, it replaces the FacesContext with a mock FacesContext specifically for rendering a template (such as a mail or PDF template). That mock infrastructure does not respect the user's locales.

      If the ExternalContext is available, the result of getRequestLocales() should be transferred to the mock infrastructure.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                dan.j.allen Dan Allen
                Reporter:
                dan.j.allen Dan Allen
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2 hours
                  2h
                  Remaining:
                  Remaining Estimate - 2 hours
                  2h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified