Daniel Fernández

Results 75 comments of Daniel Fernández

Interestingly, `NumberUtils` (the class containing the logic executed by `#numbers`) does already have a `formatCurrency(Number, Locale)` method, but the `Numbers` class that models `#numbers` itself seems to always call this...

Yes, but I was asking for the signature of the method. Would a method `formatCurrency(number, locale)` be insufficient for you for some reason? That locale would then be used at...

As long as it specifies a country, a `java.util.Locale` object does contain three pieces of information that are needed for correctly representing an amount of currency: 1. The symbol of...

I understand. I still see locale-specific currency representation more *generally correct* whatever your local language or formats, but I understand your need lies elsewhere. Note that what you need can...

As @kazuki43zoo says, this is due to the default `RoundingMode` being applied by `DecimalFormat`, which is `HALF_EVEN`(when the part of the number to be rounded is equidistant to both extremes,...

@ultraq yes exactly, this should do a great external dialect, a part of the ecosystem. In fact, with Thymeleaf 3.0's architecture I would in fact doubt between implement it as...

Actually, better leave this one open, just like #35 and #36, with the `contrib:open` label so that we can use these as a repository of ideas to external contributors.

Closing as a result of thymeleaf/thymeleaf#898 being closed without merging.

Closing this as migration guide was published at https://www.thymeleaf.org/doc/articles/thymeleaf31whatsnew.html

Given `th:text` also potentially modifies the body of the HTML element, `my:textarea` cannot also modify it. In order to avoid this, if both behaviours need to be combined it should...