Hi,

I see two options:

If you want to use a Click component to iterate over your customers
create one in Java, and reference it in Velocity.

or

Create a Velocity macro with the common layout.

regards

Bob




On Fri, Jun 3, 2011 at 10:15 AM, PXZ <[email protected]> wrote:
> The examples I have seen so far, use a different approach:
>
> - http://click.avoka.com/click-examples/panel/panel-column-demo.htm uses a
> table to iterate over the panels. But I don't want to use tables.
> -
> http://click.avoka.com/click-examples/source-viewer.htm?filename=/panel/customersPanel3.htm
> (part of ListPanelDemo) uses #foreach, but no Click Panel objects are used
> to define common layout.
>
> I'm looking for something like this:
>
> #foreach( $customer in $customers )
>  $customerPanel($customer)
> #end
>
> where "customerPanel" is a Click component that receives a customer to
> render.
> Or an approach like this:
> $customers
>
> Where "$customers" is a Click component that iterates over Click customer
> panel components.
>
> --
> View this message in context: 
> http://click.1134972.n2.nabble.com/Iterate-over-a-panel-tp6433392p6434426.html
> Sent from the click-user mailing list archive at Nabble.com.
>

Reply via email to