Details
-
Bug
-
Status: Resolved
-
Resolution: Won't Fix
-
3.0
-
None
-
None
-
Operating System: All
Platform: All
-
30484
Description
When using SqlTableModel to display a database table
org.apache.tapestry.components.Foreach component closes the resultset before
reading the last row information:
<clip>
while (hasNext)
{
_value = dataSource.next();
hasNext = dataSource.hasNext(); // ResultSet closed here!!!!
if (indexBinding != null)
indexBinding.setInt(_index);
if (valueBinding != null)
valueBinding.setObject(_value);
if (element != null)
{ writer.begin(element); renderInformalParameters(writer, cycle); }renderBody(writer, cycle);
if (element != null)
writer.end();
_index++;
}
<clip>