| Amit,
Every time that you bind to anything other than String, you have to set the formatter in WOBuilder. Go to the text box, control-click and click inspect. In the entry where it says numberFormat, select which format you want (or set your own). The most common for an integer is "0" to display the integer. If you type in "0000" for instance, and the value is 1, then it will show "0001". You have to do the same thing for dates.
John On Jul 20, 2006, at 6:22 AM, Amit Kejriwal wrote:
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. Help/Unsubscribe/Update your Subscription:
|
_______________________________________________
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]