Re: wotextfield to getX() and setX()
Re: wotextfield to getX() and setX()
- Subject: Re: wotextfield to getX() and setX()
- From: Kieran Kelleher <email@hidden>
- Date: Wed, 11 Mar 2009 10:57:38 -0400
Cannot remember if this works, but you could try to just wrap
WOtextField in a reusable subcomponent with pass thru get/set methods
for the bindings and have your own logic intercept.
On Mar 11, 2009, at 8:33 AM, Timo Hoepfner wrote:
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
_______________________________________________
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