ICEfaces
  1. ICEfaces
  2. ICE-2419

Locale reverts when dynamically set

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7DR#2
    • Fix Version/s: 1.7DR#3, 1.7
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      n/a

      Description

      If you set the locale dynamically, it is only temporally changed. The next time D2DViewHandler.createView() is called, calculateLocale() will be called, which effectively reverts the locale to the one specified on the HTTP header. A common use case is to allow the user to set the locale dynamically, by clicking on a flag icon on the page. The way we handle locales prevents this use case

        Issue Links

          Activity

          Hide
          Ken Fyten added a comment -

          Automated regression test failed on Feb. 1 @ 10pm. Likely related to changes in ICE-2551. Re-opened.

          Show
          Ken Fyten added a comment - Automated regression test failed on Feb. 1 @ 10pm. Likely related to changes in ICE-2551 . Re-opened.
          Hide
          Ken Fyten added a comment -

          False alarm. Test is passing.

          Show
          Ken Fyten added a comment - False alarm. Test is passing.
          Hide
          Vladimir Putin added a comment -

          Unfortunately FacesContext.getCurrentInstance().getViewRoot().setLocale(locale) do not work in my environment: ICEFaces 1.7.2 SP1 + Seam 2.1SP1. I tried this to make workaround for problem with non-working Seam's LocaleSelector (ICE-2147) but have no success.

          Show
          Vladimir Putin added a comment - Unfortunately FacesContext.getCurrentInstance().getViewRoot().setLocale(locale) do not work in my environment: ICEFaces 1.7.2 SP1 + Seam 2.1SP1. I tried this to make workaround for problem with non-working Seam's LocaleSelector ( ICE-2147 ) but have no success.
          Hide
          Hugues Flament added a comment -

          Hi,

          I have exactly the same issue. using Netbeans 6.5 (ICEFaces 1.7.2).

          The call to FacesContext.getCurrentInstance().getViewRoot().setLocale(locale) doesn't seem to work at all.

          This piece of code was working fine in Netbeans 6.1 (Woodstock components).

          Any suggestion would be very welcome.

          Show
          Hugues Flament added a comment - Hi, I have exactly the same issue. using Netbeans 6.5 (ICEFaces 1.7.2). The call to FacesContext.getCurrentInstance().getViewRoot().setLocale(locale) doesn't seem to work at all. This piece of code was working fine in Netbeans 6.1 (Woodstock components). Any suggestion would be very welcome.
          Hide
          Stephan Ehlen added a comment -

          Is it possible that this is again an issue in ICEfaces 1.8 RC1? I've upgraded the libraries for testing purposes in an existing project and I'm experiencing this behaviour now.

          I'm setting the locale by FacesContext.getCurrentInstance().getViewRoot().setLocale(locale).

          Show
          Stephan Ehlen added a comment - Is it possible that this is again an issue in ICEfaces 1.8 RC1? I've upgraded the libraries for testing purposes in an existing project and I'm experiencing this behaviour now. I'm setting the locale by FacesContext.getCurrentInstance().getViewRoot().setLocale(locale).

            People

            • Assignee:
              Unassigned
              Reporter:
              Philip Breau
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: