I found tapestry automatically complete the "closing tag </tr>" even I didn't' ask it to. So this was solved by removing the line:
<span jwcid="@conditional" condition=""ognl:listIndex%5==0"></tr></span> This worked and produced desired output. But I'm not sure whether it is the correct way to do it. Henry _____ From: Henry Chen [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 11, 2005 2:04 PM To: 'Tapestry users' Subject: How to split data into rows in a table given a number for each row Hi, I use @Foreach to output some images into a table and wanna put 5 pics in each row. I tried this: <span jwcid="photoLoop"> <span jwcid="@conditional" condition=""ognl:listIndex%5==1"><tr></span> <td align=center> <img jwcid="pic"/> </td> <span jwcid="@conditional" condition=""ognl:listIndex%5==0"></tr></span> </span> Tapestry complaint "</tr> is improperly nested with tag <span>", but it didn't say anything for the "<tr>". Isn't this weird? Can anybody help me out? Thanks a ton. Henry
