How about creating a CurrencyConverter which would have configurable and localizable currency formats as well as style for positive and negative values etc. Is there any value in this?
If we could drum up a list of requirements I would be willing to get it started as I have to build one anyway in the very near future. -----Original Message----- From: Mario Ivankovits [mailto:[EMAIL PROTECTED] Sent: Friday, May 05, 2006 2:24 PM To: MyFaces Discussion Subject: Re: currencyConverter -> BigDecimal storage Hi Mike! > My current thinking is to subclass NumberConverter to be a > NumberAsBigDecimalConverter, which should work for my use case. Is > there enough interest out there for me to add this as a tomahawk > component? > You can change you model to accept java.lang.Number, but I am sure you know this. Said, that: Definitely, but I would go a step further. What about a NumberConverter where you can add the wanted return type as attribute. Sometimes it is not possible to change the model. Especially when you directly talk to your entities. I know this strongly couples the view with the bean, but as long as its not allowed to automatically determine if a conversation is possible, this is the best we can get. Ciao, Mario

