Re: WOHyperlink disabled binding - set invert value
Re: WOHyperlink disabled binding - set invert value
- Subject: Re: WOHyperlink disabled binding - set invert value
- From: Zak Burke <email@hidden>
- Date: Mon, 16 Jul 2007 10:16:04 -0400
cheonghee wrote on 7/16/07 7:01 AM:
Hyperlink is disabled when aBooleanFlag is true. How do i set it in
reverse..Hyperlink is not disabled when aBooleanFlag is true only in the
binding field? Thanks.
The easiest thing is to write a cover method that flips the value
and bind to that in your .wod file:
public boolean aBooleanFlag()
{
return someConditional();
}
public boolean notABooleanFlag()
{
return ! aBooleanFlag();
}
link: WOHyperLink {
...
disabled = notABooleanFlag;
}
zak.
_______________________________________________
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