Gareth Coltman wrote:
>
> Sort of off topic but I am trying to get to grips with nested peers.
>
> Would the following be possible:
>
> I have a vector of objects which I am displaying, each object has a property
> which is also a vector:
>
> e.g Velocity macro:
>
> #foreach item in collection
> #for each subitem in collection.subCollection
> $subItem.Property
> #end
> #end
>
> Has this been done before?
If the question is about Velocity, yes, with the appropriate syntactical
fixes, and I assume you mean that the inner loop subcollection is part
of each $item, rather than $collection :
#foreach( $item in $collection )
#foreach( $sub in $item.subcollection )
$sub.Property
#end
#end
will work fine.
If this is a turbine specific question about peers, ignore me.
geir
--
Geir Magnusson Jr. [EMAIL PROTECTED]
System and Software Consulting
Developing for the web? See http://jakarta.apache.org/velocity/
"still climbing up to the shoulders..."
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]