Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.4
    • Component/s: None
    • Labels:
      None

      Description

      Our DoubleConverter currently always use Double.valueOf() but this just takes the default Locale of the server we run at.

      But the String representing the double might be different depending on the Users Locale.
      E.g. in Germany, a double of 47.33 will be written as "47,33", whereas in the US, the decimal separator will be a dot: "47.33"

        Activity

        Hide
        Mark Struberg added a comment -

        tests + potential fix.
        But will ping ed on the EG first to make sure that this really needs to be fixed.

        Show
        Mark Struberg added a comment - tests + potential fix. But will ping ed on the EG first to make sure that this really needs to be fixed.
        Hide
        Werner Punz added a comment -

        Spec: Section 2.5.2.1
        JSF has the concept of an active Locale which is used to look up all localized resources. Converters must use this
        Locale when performing their conversion. This Locale is stored as the value of the locale JavaBeans property on
        the UIViewRoot of the current FacesContext. The application developer can tell JSF what locales the application
        supports in the applications’ WEB-INF/faces-config.xml file. For example:

        So it really is a bug

        Show
        Werner Punz added a comment - Spec: Section 2.5.2.1 JSF has the concept of an active Locale which is used to look up all localized resources. Converters must use this Locale when performing their conversion. This Locale is stored as the value of the locale JavaBeans property on the UIViewRoot of the current FacesContext. The application developer can tell JSF what locales the application supports in the applications’ WEB-INF/faces-config.xml file. For example: So it really is a bug
        Hide
        Mark Struberg added a comment -

        fixed in DoubleConverter.java

        Show
        Mark Struberg added a comment - fixed in DoubleConverter.java

          People

          • Assignee:
            Mark Struberg
            Reporter:
            Mark Struberg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development