cancel
Showing results for 
Search instead for 
Did you mean: 

How to change Decimal Separator

raweck
Champ on-the-rise
Champ on-the-rise
Is it possible to change decimal separator for example from '.' to ',' ?
I tried to use Converter mechanism, but there are additional rules on number types that do not allow accept numbers with comma  :?
1 REPLY 1

raweck
Champ on-the-rise
Champ on-the-rise
Why a converter does not help?

I think that there is small bug in
org.alfresco.web.bean.generator.TextFieldGenerator
in
setupConstraints method.

There is defined validation
propertySheet.addClientValidation(new ClientValidation("validateIsNumber", params, false));
The validation validate value inputed by user, but it should validate value inputed by user and transformed by converter (if any is defined).
I do not know yet how to fix it in the proper way. I removed code responsible for validation, but because of this the error message is less ergonomic, when I provide invalid value.