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 protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/stefan.klein%40kess-gmbh.de

This email sent to [EMAIL PROTECTED]
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to