Hi All,
Before submitting a patch, I thought I'd discuss it with the community.
We would like to be able to add shortcuts, like "3m" meaning 3 millions, 2k
= 2,000. Typically a shortcut for hundred, thousand, millions, billions (for
SocGen J ).
Unfortunately, BigDecimalTextField is explicitly instantiated in several
places, making it impossible to extend.
We have a patch that works fine for us but it is a bit tricky and may not
work internationally. the shortcut may vary from one language to the other.
What would be the best approach? I was thinking that one could define some
keys to be included in the messages.properties eg:
BigDecimalTextField.shortcut.hundred=h
BigDecimalTextField.shortcut.thousand=k
.
And therefore introducing some i18n.
Jan, would you consider this approach if we were to send a patch? If not,
how would you like to extend the BigDecimalTextField to provide such
functionality?
We'd like to help
Thanks a lot
Benoit
------------------------------
IMPORTANT NOTICE
This communication contains information that is considered confidential and
may also be privileged . It is for the exclusive use of the intended
recipient(s). If you are not the intended recipient(s) please note that any
form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful. If you have
received this communication in error please return it to the sender and
delete the original.
|