Legacy Mac OS X Reference Library Apple Developer Connection

WOKeyValueConditional

A WOKeyValueConditional component displays its contents (that is, everything between the <WEBOBJECT...> and </WEBOBJECT...> tags in the template file) if the result of the parent component’s valueForKey method matches a particular value. Raises an exception if the parent component’s dictionary does not contain key. This component is very similar to the WOConditional dynamic element and is usually used in conjunction with the “WOTabPanel” component.

Synopsis

WOKeyValueConditional { key=aString; value=anObject; };

Bindings

key

The key whose value is compared.

value

The value that must match the result of the parent’s valueForKey method.

negate

Inverts the sense of the condition. By default, negate is assumed to befalse.



Last updated: 2004-12-02

Did this document help you? Yes It's good, but... Not helpful...