Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-1528

Regression: <h:DataTable> empty with CachedRowSet

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.1.4, 1.1.5-SNAPSHOT
    • None
    • JSR-127
    • None
    • Linux, Tomcat-5.5.20, org.postgres.Driver jdbc3-8.1

    Description

      Hi,

      I have a working application (myfaces-1.1.3.jar) that fills a CachedRowSet
      and displays in a <h:dataTable>.

      When replacing with myfaces-1.1.4 or myfaces-1.1.5-SNAPSHOT
      (I tried with SNAPSHOT January1st, February 1st) the dataTable is empty,
      no rows are rendered and no exceptions are thrown.

      (Actually I have two applications in three different environments
      which reproducible fail to render the table)

      I am unsure whether this relates to TOMAHAWK-89,
      but that refers to <t:dataTable>

      Yours,
      Steffen

      Bean:
      public CachedRowSet getRsdates(){
      ResultSet d = null;
      CachedRowSet crs = null;
      try

      { con = getDBConnection(); pstm = con.prepareStatement("select date, count(date) as count from userdates group by date order by date;"); d = pstm.executeQuery(); crs = new CachedRowSetImpl(); crs.populate(d); con.close(); }

      catch (SQLException e)

      { // TODO Auto-generated catch block e.printStackTrace(); }


      return crs;
      }

      *.jsp:
      <h:dataTable value="#

      {tisch.rsdates}

      " var="tupel" >
      <h:column>
      <h:outputText value="#

      {tupel.date}

      " />
      </h:column>
      </h:dataTable>

      Attachments

        Issue Links

          Activity

            People

              lu4242 Leonardo Uribe
              sneumann Steffen Neumann
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: