• 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: Formatter Error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Formatter Error


  • Subject: Re: Formatter Error
  • From: Stefan Klein <email@hidden>
  • Date: Thu, 20 Jul 2006 14:10:44 +0200

Hi Amit,

you hat to set the numberFormat binding of the WOTextField.

On the other hand, use getter and setter with String arguments and use new Integer(string) to convert the value.
Using this, you can catch the NumberFormatException by your own.

Stefan

Amit Kejriwal schrieb:

Hi all,

          What I am trying to do is to collect  a value from the user through the text box  which I have binded   to a variable of the type Integer. And whose       getter and setters are also of the same type .

But I am getting an error of thge type:
Error:
java.lang.IllegalArgumentException: While trying to invoke the set method "public void Main.setDsid(java.lang.Integer)" on an object of type Main we received an argument of type java.lang.String. This often happens if you forget to use a formatter.
Reason:
While trying to invoke the set method "public void Main.setDsid(java.lang.Integer)" on an object of type Main we received an argument of type java.lang.String. This often happens if you forget to use a formatter.


Do we need  to bind any other binding as well.  What could be the reason?
Please suggest.

Thanks  Amit.
          


_______________________________________________ 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
 _______________________________________________
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: 
 >Formatter Error (From: Amit Kejriwal <email@hidden>)

  • Prev by Date: Formatter Error
  • Next by Date: Re: Formatter Error
  • Previous by thread: Formatter Error
  • Next by thread: Re: Formatter Error
  • Index(es):
    • Date
    • Thread