Re: Velocity Template Question
Re: Velocity Template Question
- Subject: Re: Velocity Template Question
- From: Andrew Lindesay <email@hidden>
- Date: Sat, 21 Nov 2009 09:46:26 +1300
Hi Mike;
You are right; I'm trying to add a method to the entitys' superclasses for fetching based on "code" if the "code" attribute is present. I'm trying to achieve what I had before using velocity. I am doing something like this, but the #if is not firing;
> #if ($entity.sortedClassAttributes.containsObject(code))
> @SuppressWarnings("unchecked")
> public static nz.co.orcon.osm.eo.main.OcnDuration fetchByCode(EOEditingContext ec, String code) {
> ....
> }
>
> ...
>
> #end
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