2 Replies Latest reply on Oct 31, 2008 10:50 AM by Jay Haley

    a4j:repeat inside of rich:dataTable problem - empty cells

    Jay Haley Newbie

      I am having problems using a a4j:repeat inside of a rich:dataTable. The problem is that I am getting extra empty iterations inside of the a4j:repeat. Below where I state what I'm getting, note that in the first row between the two zeros I have an empty cell and after the three I have an empty cell. Any ideas on how to address this?

      What I'm trying to do.
      ----------------------
      | 0 | 0 | 1 | 2 | 3 |
      |----------------------
      | 1 | 0 | 1 | 2 | 3 |
      |----------------------
      | 2 | 0 | 1 | 2 | 3 |
      |----------------------
      | 3 | 0 | 1 | 2 | 3 |
      ---------------------


      What I'm getting
      --------------------------
      | 0 | | 0 | 1 | 2 | 3 | |
      |-------------------------
      | 1 | | 0 | 1 | 2 | 3 | |
      |-------------------------
      | 2 | | 0 | 1 | 2 | 3 | |
      |-------------------------
      | 3 | | 0 | 1 | 2 | 3 | |
      --------------------------

      <rich:dataTable var="row" rowKeyVar="rowCount" value="#{valuationCtrl.fvpRatesTables}">
       <t:column>
       <t:panelGrid columns="2" border="4">
      
       <t:panelGrid columns="1">
       <t:panelGroup>
       #{rowCount}
       </t:panelGroup>
       </t:panelGrid>
      
       <table border="1">
       <tr>
       <a4j:repeat rowKeyVar="colCnt" var="col" value="#{row.deductibleRates}" >
       <td>#{colCnt}</td>
       </a4j:repeat>
       </tr>
       </table>
      
       </t:panelGrid>
       </t:column>
      </rich:dataTable>
      


      first row of generated html
      <table id="roomsFrm:j_id26:0:j_id28" border="4">
       <tbody>
       <tr>
       <td>
       <table id="roomsFrm:j_id26:0:j_id29">
       <tbody>
       <tr>
       <td><span id="roomsFrm:j_id26:0:j_id30"> 0</span></td>
       </tr>
       </tbody>
       </table>
       </td>
       <td>
       <table border="1">
       <tbody>
       <tr />
       <tr>
       <td></td>
       <td>0</td>
       <td>1</td>
       <td>2</td>
       <td>3</td>
       <td></td>
       </tr>
       </tbody>
       </table>
       </td>
       </tr>
       </tbody>
      </table>