• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WOTextField to BigDecimal
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >WOTextField to BigDecimal (From: John Pollard <email@hidden>)

  • Prev by Date: Re: Removing extra blank lines from generated html?
  • Next by Date: Re: Can't get the Apple examples run
  • Previous by thread: WOTextField to BigDecimal
  • Next by thread: Database Design - Multiple locations
  • Index(es):
    • Date
    • Thread