You can just use Loop component - http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Loop.html
Kalle On Thu, Sep 24, 2009 at 5:31 AM, Gunnar Eketrapp <gunnar.eketr...@gmail.com> wrote: > I am converting jsp that produces a table like ... > > 1 317 > 2 45 > 3 118 > > ... i,e. an index plus a count for that index. > > How should you folks do this? Is there a way with .tml to fix this or do I > have to use Grid or write a component. > > JSP code > ======= > <% int level=1; %> > <c:forEach items="${levels}" var="count"> > <tr> > <td<%= level % 2 == 0 ? " class=\"tdalt\"" : "" %>><%= level %></td> > <td<%= level % 2 == 0 ? " class=\"tdalt\"" : "" %>>${count}</td> > </tr> > <% ++level; %></c:forEach> > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org