Example of Data Formatting in UI

Let’s consider how the Order.date attribute is displayed in orders table.


<table id="ordersTable">
        <column id="date"/>

The date attribute in the Order class is defined using "date" type:

@Column(name = "DATE_", nullable = false)
private Date date;

If the current user is logged in with the Russian locale, the following string is retrieved from the main message pack:


As a result, date "2012-08-06" is converted into the string "06.08.2012" which is displayed in the table cell.