Re: WOConditional Question
Re: WOConditional Question
- Subject: Re: WOConditional Question
- From: Chuck Hill <email@hidden>
- Date: Tue, 2 Jan 2007 13:04:47 -0800
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.
So many ways, so few cats...
Chuck
On Jan 2, 2007, at 12:53 PM, Markus Lux wrote:
Hi Chip,
you can't do this with a WOConditional. You can use a WOConditional
only for checking booleans or null values (if the given condition
is null, then no content is displayed).
You need to write a method that checks that for you and returns a
boolean value.
Greetings, Markus
2007/1/2, Chip Myers <email@hidden>: This question is in
regards to the condition attribute within a WOConditional. How do
I perform a simple check on an integer, to see if it equals a
certain number? In this case, I only want the contents of the
WOConditional to be displayed when this integer equals 4.
Any help offered would be appreciated.
Thanks,
Michael
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ( email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net
This email sent to email@hidden
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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