You’ll find some techniques in here:

http://jumpstart.doublenegative.com.au/jumpstart/examples/input/augmentingtranslators
 
<http://jumpstart.doublenegative.com.au/jumpstart/examples/input/augmentingtranslators>
http://jumpstart.doublenegative.com.au/jumpstart/examples/input/contributingtranslators
 
<http://jumpstart.doublenegative.com.au/jumpstart/examples/input/contributingtranslators>

If you are handling multiple currencies, consider using the datatype 
org.joda.money.Money throughout, except in the entity convert it to BigDecimal 
and a String currencyCode, and the database use decimal and varchar, 
respectively.

HTH,

Geoff

> On 26 Jul 2018, at 11:38 pm, abangkis <abang...@gmail.com> wrote:
> 
> Hi, i want to create a money/currency field but get confused on what the
> right approach.
> 
> I've been looking at custom validator, translator, mixin, even extending
> tapestry TextField it self.
> 
> Basically the requirements is:
> - When the user type 100000, it will be shown as a certain format (ex:
> 100.000)
> - There's a possibility/optional parameter that you can show the currency
> symbol ($100.000)
> 
> Can anyone give a little bit direction? Thanks
> 
> -- 
> http://www.mreunionlabs.net/ <http://www.mreunion-labs.net/>
> twitter : @mreunionlabs @abangkis
> page : https://plus.google.com/104168782385184990771

Reply via email to