I tried Number type, it worked in terms of type. However,
 
<f:convertNumber type="currency" currencySymbol="$"/>
 
If I specify currencSymbol, displaying as outputText is OK: $98.50. I like it.
but for editing using <inputTex>, no matter what I type, I got  Conversion Error : Specified value is not a valid number. I tried:  $56, $98.5, $86.56, 56, 98.5, 86.56.

 

If I remove the currencySymbol, it works fine. but a weird currency symbol show up like:

 ยกรจ86.56


what is wrong? Anyone using <convertNumber> for currency successfully?
 
Thanks.
Dave

Dave <[EMAIL PROTECTED]> wrote:
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.


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

Reply via email to