Re: WOConditional Question
Re: WOConditional Question
- Subject: Re: WOConditional Question
- From: shaun <email@hidden>
- Date: Wed, 03 Jan 2007 10:35:25 +1030
Chuck Hill wrote:
That is generally how it is done. We have a KeyValueConditional in our
frameworks or in the PracticalWebObjects code that has bindings like:
Foo: KeyValueConditional {
key = someKey;
value = someValue;
negate = false;
}
Where the condition evaluates to true if key.equals(value). I am
pretty sure that Wonder has this also. Or you could use WOOgnl from
Wonder.
There is also a WOKeyValueConditional component in the woextensions library.
http://developer.apple.com/documentation/WebObjects/Reference/API/
com/webobjects/woextensions/WOKeyValueConditional.html
The key needs to be a keypath in quotes, eg)
kvc : WOKeyValueConditional{
key = "bar";
value = blah;
}
cheers,
- shaun
_______________________________________________
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