On 8/18/06, Mario Ivankovits <[EMAIL PROTECTED]> wrote:
Hi Mike!
> I hadn't noticed this before -- You added it while I was on vacation.
> Sneaky.   :-)  And after you'd already +1'd my implementation in the
> "currencyConverter -> BigDecimal storage" thread.
Hmmm, yes, sorry.
If I remember correctly, I had a bad need for this and thought no one
else already did it.

No problem.   Mine isn't as flexible a design as yours -- it only
converts to a BigDecimal.


> How well tested is yours?
I use it in our application with inputText. On outputText there is a
little problem which I should have a look at, but, well, still out of
time :-(

Ok.  I'm pretty sure mine works for both.  Maybe this is just a result
of inheriting from NumberConverter.


> - Mine inherits from NumberConverter.   Why didn't you do the same for
> yours?  It looks like you instead copied that code into your
> converter.
Hmmm ... maybe just sort of dumb guy :-( I cant remember.
I think I thought its not allowed to inherit from the impl, which in
this case is wrong, no?
We can change this easily.

NumberConverter is part of the api, not the impl, so there's nothing
stopping us from inheriting from it.   Every JSF implementation is
required to supply the class.  I'll make these changes as well.


> - Mine "fixes" the currency conversion issue by adding a currency
> symbol (if it's a currency converter) to the value before parsing the
> number.   We could merge this change into yours as well.
Oh yes, this will be great. Could you do it?

Sounds good.   I'm probably not going to get to it for another couple
of weeks in any case.

Reply via email to