Re: WOTextField to BigDecimal
Re: WOTextField to BigDecimal
- Subject: Re: WOTextField to BigDecimal
- From: Lachlan Deck <email@hidden>
- Date: Sat, 19 Apr 2008 19:40:24 +1000
On 19/04/2008, at 5:37 PM, John Pollard wrote:
I am struggling with understanding this error:
java.lang.IllegalArgumentException: While trying to invoke the set
method "public void
beteee.app.components.StatsPage.setSellPrice(java.math.BigDecimal)"
on an object of type beteee.app.components.StatsPage we received an
argument of type java.lang.String. This often happens if you forget
to use a formatter.
I am trying to link a WOText field to a BigDecimal. Given a
WOTextField defined as follows:
sellPriceField: WOTextField {
size = 6;
value = sellPrice;
numberFormat = "###0.00";
}
try using autocompletion ;-)
sellPriceField: WOTextField {
size = 6;
value = sellPrice;
numberformat = "###0.00";
}
The error message is indeed correct :-)
with regards,
--
Lachlan Deck
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden