This is producing better results... <table width="100%"> <tr> <t:Loop id="foreachrow" source="collection" value="currentObject" index="index"> <!-- begin loop collection --> <t:If test="okToRenderItem"> <t:Loop id="foreachitem" source="currentObject"> <!-- begin loop object --> <td> <a href="#" model="currentObject"> <t:pagelink t:page="Edit" context="editPageContext"> <t:Any t:id="imageComponentId" id="imageComponentId" > <img id="transparentTextImageComponentId" model="currentObject" src="${photoLink}" image="${photoLink}" alt="${currentObject}.photo.fileName" title="${currentObject}.photo.fileName" width="200" height="160" topLeftText="${currentObject}.transparentText" topRightText="topRightText" bottomLeftText="bottomleft" bottomRightText="bottomright" centerText="center" /> </t:Any> </t:pagelink> </a> </td> </t:Loop> <!-- end for loop object--> <t:If test="atNewRow" negate="false"> <t:OutputRaw value="${newTableRow}"/> </t:If> </t:If> </t:Loop> <!-- end for loop collection--> <t:If test="atNewRow" negate="true"> <t:OutputRaw value="${endTableRow}"/> </t:If> </tr> </table>
but the last <tr> is unwanted and invalid... it dont belong and produces an exception unless I put it there 1 element for first row 3 elements for second row 1 element for second row so the count is being tripped up Ok will keep slugging it out....