Re: Formatter Error
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