On Mon, 2004-07-26 at 15:52, Gunter D'Hondt wrote:
> Bruno,
> The date formatting is ok, but the decimal is still not working (has
> nothing to do with the formatting); error is:
>
> java.lang.RuntimeException: Incorrect value type for "mydecimal"
> (expected class java.math.BigDecimal, got class java.lang.String.
>
> I'm sure that the input is "1000.0" which should be accepted by the
> constructor java.math.BigDecimal(java.lang.String)
which doesn't really matter, as it depends on the implementation of the
convertor what is accepted.
> Any idea?
What are you doing exactly?
The error you mention above is what one would usually get when doing
widget.setValue(value) where value is of an incorrect class. Thus
mydecimal.setValue("1000.0") could yield this type of error.
--
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED] [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]