• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WOConditional Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >WOConditional Question (From: Chip Myers <email@hidden>)
 >Re: WOConditional Question (From: "Markus Lux" <email@hidden>)
 >Re: WOConditional Question (From: Chuck Hill <email@hidden>)

  • Prev by Date: HTML to PDF?
  • Next by Date: Re: HTML to PDF?
  • Previous by thread: Re: WOConditional Question
  • Next by thread: HTML to PDF?
  • Index(es):
    • Date
    • Thread