• 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: Velocity Template Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Velocity Template Question


  • Subject: Re: Velocity Template Question
  • From: Chuck Hill <email@hidden>
  • Date: Thu, 19 Nov 2009 21:05:49 -0800


On Nov 19, 2009, at 8:52 PM, Andrew Lindesay wrote:

Hello;

In eo-gen templates, is it possible to do something like this;

#if ($entity.sortedClassAttributes.code)

#if ($entity.sortedClassAttributes().containsObject(code))

or

#if ($entity.sortedClassAttributes.containsObject(code))


should work.


Chuck


...
#end


Where the ... would be inserted if the "code" attribute were present in the list of 'sortedClassAttributes'?

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

-- Chuck Hill Senior Consultant / VP Development

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


  • Follow-Ups:
    • Re: Velocity Template Question
      • From: Mike Schrag <email@hidden>
References: 
 >Velocity Template Question (From: Andrew Lindesay <email@hidden>)

  • Prev by Date: Velocity Template Question
  • Next by Date: Re: Webobjects-dev Digest, Vol 6, Issue 1103
  • Previous by thread: Velocity Template Question
  • Next by thread: Re: Velocity Template Question
  • Index(es):
    • Date
    • Thread