Number formatting issue: numberDecimalSeparator and numberGroupingSeparator not applied for bigDecimalField

Hi everyone,

I’ve run into an issue with number formatting in Jmix and would like to know if anyone has faced (and solved) something similar.

In my message.properties, I’ve set the following:

numberDecimalSeparator=,
numberGroupingSeparator=\

Observed behavior:

  • When I use a textField bound to a numeric property, the formatting works as expected — decimal and grouping separators are applied correctly based on the configuration above.
  • However, when I use a bigDecimalField for the same type of data (e.g., a BigDecimal entity attribute), the formatting is not applied.

My questions:

  1. If not, how can I make bigDecimalField respect the numberDecimalSeparator and numberGroupingSeparator settings from message.properties?
  2. Is there a configuration or formatter binding I need to apply manually for bigDecimalField?

Any advice or code examples would be greatly appreciated.

Thanks in advance!

Hi @phamanhvu20031411

Did you check the properties of the BigDecimal Field ?
image

Perhaps you did define here something different ?

Regards

Hi @f.zehnder
I’m currently keeping the default Jmix settings

image

If I’ve already defined the decimal and grouping separators in message.properties, do I still need to explicitly set them again in the field’s properties?

Hi @phamanhvu20031411

Could you solve the problem or should I attach you a small project ?

Best regards
Felix

Hi @f.zehnder,

I would greatly appreciate it if you could provide me with a small project. Thank you very much in advance.

Best regards,
Anh Vu

Hi @phamanhvu20031411

Attached you find a very small sample with just one entity where you can enter a bigdecimal and it will be formatted to your wishes based on messages_en.properties.

I added a second language ( German ) so you can test, how the same data gets formatted different based on the selected login language.

Let me know, if this solves your problem :wink:

Best regards
Felix

DecimalSample.zip (93.2 KB)