3 Replies Latest reply on Apr 14, 2012 2:08 AM by iabughosh

    rich:dataTable executing too much queries and opening more than 1 Hibernate Session

    rimolive

      Hello all,

       

      I found a problem using <rich:dataTable>. When I use these attributes:

       

      <rich:dataTable id="enderecoList" var="endereco" value="#{enderecoBean.resultList}" rendered="#{not empty enderecoBean.resultList}">
      ...
      </rich:dataTable>
      
      

       

      it is opening 8 Hibernate sessions and executing the same query 8 times. However, if I remove rendered attribute it will open 1 Session and execute the query only once. Is it a known bug?

       

      I tested with Richfaces 4.1.

       

       

      Regards,

       

      Ricardo