Uploaded image for project: 'Tiles'
  1. Tiles
  2. TILES-215

Struts-beans and tiles handle request.getLocale different

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 2.0.4
    • None
    • tiles-core
    • None
    • Operating System: Linux
      Platform: PC

    • 37653

    Description

      <bean:message key="...."/> uses request.getLocale if available. Tiles doesn't.
      This leads to partial translatet websites unless you develop a workaround
      yourself (like copying the request Locale into the session).

      Either both frameworks use request.getLocale or both frameworks should use only
      the session settings per default. The current solution is inconsistent, leading
      to confusion and is hardly documented (at least I didn't find any resources
      about it).

      I hope this will be fixed either by a better documentation or by different
      default settings (I know this won't happen as it may break many other sites).

      Thanks for struts and tiles - both are realy great, but the tiles documentation
      (especially about internationalisation) sucks.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              treffer@in.tum.de René Treffer
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: