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

Reply via email to