Problem with textField formater

Hi

I create textField in xlm like below

 <textField id="unitConvert"
                                 align="BOTTOM_RIGHT"
                                 caption="msg://unitConvert"
                                 datatype="decimal"
                                 mask="#,##0.00"
                                 stylename="align-right"
                                 width="106px"/>

next I try set format #,##0.00 , but I have problem because parametr mask doesn’t work like annotation in entity e.g
@NumberFormat(pattern = "#,##0.00", decimalSeparator = ",", groupingSeparator = ".")

How can I reach the same effect in textField

Hi,

Even though the formatter element can be added to textFeild, the documentation says:

Formatter should be used with read-only components, such as Label, Table column and similar. Editable components values, for example, TextField, should be formatted using the Datatype mechanism.

In fact, as the result of adding the @NumberFormat annotation, the special NumberDatatype is created. So, I recommend following the doc’s suggestion and create a datatype.

Regards,
Gleb