Legacy Knowledge Base
Published Jul. 2, 2025

Decimales in fields type ddm-number and ddm-decimal always displays the decimal separator as point

Written By

Ankit Gupta

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How to articles!

While we make every effort to ensure this Knowledge Base is accurate,it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • Decimal fields type ddm-number and ddm-decimal always displays the decimal separator as point when viewing with Web Content Display widget and Asset Publisher 

    Steps:
    1. Go to Content & Data > Web content > Structures > Click on + button to add new structure 

    2. Add to the structure two fields of type ddm-number and ddm-decimal be sure they are localizable

    3. Go to Templates add a template to the Structure created before and drag the two fields to be displayed

    4. Go to Web Content add a new content with the structure created at step 1

    5. Add different values that contains decimals for example select locale en-US and add 100000.201 than select locale es-ES add value 200000,102 (see that here comma and point changes based on locale)

    6. Go to a widget page and add a Web Content Display to view the content we created at step 4 

    7. Use Language selector widget to change language to es-ES see the values 200000,102 still display with decimal separator as point 200000.102 and not comma as it should.

    Actual: Decimal fields type ddm-number and ddm-decimal always displays the decimal separator as point

    Excepted: Decimal fields type ddm-number and ddm-decimal displays the decimal separator related to the current selected locale 

    * Please see Zendesk Support tab for further comments and attachments.

Environment

  • Liferay DXP 7.2
  • LIferay DXP 7.3

Resolution

  • The observed behavior is a known issue and is fixed in liferay-fix-pack-dxp-2 for 7.3.
  • The observed behavior is a known issue and is fixed in liferay-fix-pack-dxp-14 for 7.2.
  • If the hotfix is required for this issue, please create a support ticket requesting hotfix by attaching patch details.
  • Installing Fix Packs and Hotfixes on Liferay DXP will guide to install these Fixpack in your environment.
Did this article resolve your issue ?

Legacy Knowledge Base