cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@mobilebox.pl>
Subject Re: JXTemplate - Output Fixed Number Columns
Date Mon, 11 Apr 2005 20:42:09 GMT
Brent Johnson wrote:
> Sorry, this may be a stupid question, but I can't think up a way to do
> this in a JXTemplate.
> 
> I've got an ArrayList I'm passing into a JXTemplate with
> sendPageAndWait().  Let's say that it has a size of 8.  I want to
> output a table with a fixed number of 3 columns.  So there would be
> the first three items in the first row, 3 on the second, and the last
> 2 on the third.
> 
> Any pointers on how I can do this using jx:forEach or something similar?
you are better off creating a custom generator for that or you could 
just split up your data at controller level sending an array of arrays 
to jxtemplate.

-- 
Leszek Gawron                                      lgawron@mobilebox.pl
IT Manager                                         MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message