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
Attachments
Issue Links
- duplicates
-
MYFACES-1743 Allow NumberConverter to recognize both breaking and non-breaking spaces as grouping separators in the French locale
- Closed