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,%20java.lang.Object,%20java.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 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