JSF should use BigDecimal. One type for all different numbers.

Yannick Le Teigner <[EMAIL PROTECTED]> wrote:
Hello,

I use f:convertNumber in my application to display localized number value.
Problam is that if the number entered in the input box by the user has
any decimal digits (i.e. 14.75) then the returned number is a Double. If
the number does not have any decimal digit (i.e 103), then the returned
number is a Long.
The only solution I have found is to put MyBean.value as an object of
type Object, but I have to do type cast all over the place...





Has anyone found a way to force the type of the returned value?

Thanks,
Yannick


Yahoo! FareChase - Search multiple travel sites in one click.

Reply via email to