You need to sign in to do that
Don't have an account?

empty table row (<tr>) when trying to populate an html table using apex:repeat
I have a class that builds a complex listobject. This class is called from a VF page. Everything is displaying correctly EXPECT for what looks to be an empty table row before the table data and then another one immediately after the table data. Below is a sample of what I am doing with the apex:repeat tag:
<apex:repeat value="{!ReportValues}" var="RV">
<tr>
<td width = "90px">
<apex:outputLabel value="{!RV.strStage}" />
</td>
<td width = "210px">
<apex:outputLabel value="{!RV.strAccount}" />
</td>
<td width = "210px">
<apex:outputLabel value="{!RV.strProject}" />
</td>
<td width = "210px">
<apex:outputLabel value="{!RV.strRole}" />
</td>
</tr>
</apex:repeat>
Any ideas as to WHY this would be attempting to insert an empty table row before and after the data? Another interesting tidbit. In Google Chrome we only see one empty cell under the first column. In FireFox we see two empty cells covering the first two columns.
Thanks
--Todd Kruse
I figured it out. I was using an apex:panelGrid with its columns = "2"
I removed the apex:panelGrid and everything displayed correctly without the extra table row/table data line.
Will have to do a little research about panelGrids.
Thanks
--Todd Kruse