Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-1782

France Locale and NumberConverter doesn't work well with currency strings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.0
    • 1.2.2
    • JSR-252
    • None

    Description

      This test-case shows, that there is a failure inside the standard NumberConverter (MyFaces):

      protected void setUp() throws Exception
      {
      super.setUp();

      mock = new NumberConverter();
      mock.setLocale(Locale.FRANCE);
      FacesContext.getCurrentInstance().getViewRoot().setLocale(Locale.GERMANY);
      }

      public void testFranceLocale()
      {
      UIInput input = new UIInput();
      mock.setType("currency");
      Number number = (Number)
      mock.getAsObject(FacesContext.getCurrentInstance(), input, "12 345,68
      €");
      assertNotNull(number);
      }

      the grouping_sep should be a nb-space...

      Attachments

        1. MYFACES-1782.patch
          3 kB
          Matthias Wessendorf

        Issue Links

          Activity

            People

              matzew Matthias Wessendorf
              matzew Matthias Wessendorf
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: