I figured this - this works:
<td class = "$~errorMessages.objectForKey(\"title\") != null ? \"error
\" : \"label\"">My Title</td>
Simon
Begin forwarded message:
From: Simon McLean <[EMAIL PROTECTED]>
Date: 14 March 2008 15:55:24 GMT
To: AppleWO List <[email protected]>
Subject: inline binding problem
HI All -
Having some fun trying to get an inline binding to work. I'm sure
this must be something blindingly obvious, but i can't see it on a
Friday afternoon :-)
errorMessages is a dictionary in my component class. I'm trying to
toggle the css class of a <td> element based on the contents of the
dictionary as follows:
<td class = "$errorMessages.objectForKey(\"title\") != null ?
\"error\" : \"label\"">My Title</td>
But it just returns null (in fact, it renders as just a <td> tag
with no class attribute at all). Can anyone spot what's wrong with
this ?
Thanks, Simon
_______________________________________________
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]