[ 
https://issues.apache.org/jira/browse/MYFACES-1528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12491508
 ] 

Paul Norrie commented on MYFACES-1528:
--------------------------------------

I've just found the same bug.

Myfaces implementation of dataTable renders no rows in 1.1.5 and 1.1.4 but it 
does in 1.1.3.  Note this is the h:dataTable not Tomahawks t:dataTable.

> Regression: <h:DataTable> empty with CachedRowSet
> -------------------------------------------------
>
>                 Key: MYFACES-1528
>                 URL: https://issues.apache.org/jira/browse/MYFACES-1528
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-127
>    Affects Versions: 1.1.4, 1.1.5-SNAPSHOT
>         Environment: Linux, Tomcat-5.5.20, org.postgres.Driver jdbc3-8.1
>            Reporter: Steffen Neumann
>
> 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>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to