You can also use WOOgnl framework from Project Wonder to allow OGNL
in bindings:
String : WOString {
...
disabled = "~!aBooleanFlag";
}
On Jul 16, 2007, at 6:16 PM, Zak Burke wrote:
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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/den%40demax.ru
This email sent to [EMAIL PROTECTED]
--
Denis Frolov
Design Maximum MA
Tel: +7 863 2648211
Fax: +7 863 2645229
Web: http://www.designmaximum.com
_______________________________________________
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]