Re: Velocity Template Question
Re: Velocity Template Question
- Subject: Re: Velocity Template Question
- From: Mike Schrag <email@hidden>
- Date: Fri, 20 Nov 2009 15:29:52 -0500
i'm not exactly sure what you're trying to do ... are you trying to lookup an attribute named "code" and then ask if the given entity contains that attribute, then you render whatever is in the #if? Maybe i should ask you what you're attempting to achieve.
On Nov 20, 2009, at 3:17 PM, Andrew Lindesay wrote:
> Hi Mike;
>
>>> #if ($entity.sortedClassAttributes.containsObject(code))
>> ...
>> and "contains" -- it's a List (maybe a Set). and you would have to have looked up the attribute "code" already, obviously.
>
>
> Sorry; I'm a bit new to this -- can you elaborate on that?
>
> cheers.
>
> ___
> Andrew Lindesay
> www.lindesay.co.nz
>
_______________________________________________
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