0 Replies Latest reply on Jul 5, 2007 5:25 PM by Tony Mai

    Incorrect @DataModelSelection when used with rich:dataTable

    Tony Mai Apprentice

      Hello all,

      I am using RichFaces 3.0.1GA together with Seam 1.2.1GA (My project contains the RichFaces GA lib to be deployed on top of Seam 1.2.1GA + JBoss 4.0.5GA).

      On my page, I have a rich:datascroller used with rich:dataTable. Regardless of which ever row I clicked, I'd always get the last row on the page (of that datascroller).

      Here is how I coded it:

      <rich:datascroller for="allOrders" rendered="#{allOrders != null and allOrders.rowCount>5}" />
       <rich:spacer height="10" rendered="#{allOrders != null and allOrders.rowCount>5}" />
       <rich:dataTable id="allOrders" rows="5"
       onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
       onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
       cellpadding="0" cellspacing="0"
       value="#{allOrders}" var="ord"
       rendered="#{allOrders != null and allOrders.rowCount>0}" >
      
       <f:facet name="header">
      ....


      Can someone tell me what I did wrong?

      Thanks