Re: wotextfield to getX() and setX()
Re: wotextfield to getX() and setX()
- Subject: Re: wotextfield to getX() and setX()
- From: Timo Hoepfner <email@hidden>
- Date: Wed, 11 Mar 2009 13:33:49 +0100
I have bounded wotextfield to getX() and setX() method and that
wotextfield field is used in an worepetition
issue is it comes to setX() method only if we enter (field has) a
value. How to change this to come setX() method even it has an
empty value.
thanks
Rukmal Dias
The setX() will only be called if the value from the filed differs
from the one returned by getX(). There is no easy way around it.
This comes from
NSValidation.DefaultImplementation.validateTakeValueForKeyPath.
<http://developer.apple.com/documentation/InternetWeb/Reference/
WO542Reference/com/webobjects/foundation/
NSValidation.DefaultImplementation.html#validateTakeValueForKeyPath
(java.lang.Object, java.lang.Object, java.lang.String)>
Confirms that value is legal for an objects's property, which is
named by keyPath, and assigns the value to the property if it's
legal (and if value is different from the current value).
If you tell us what you're actually trying to accomplish, we can
maybe point you to a different solution.
Timo
_______________________________________________
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