You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ta...@jakarta.apache.org> on 2005/06/16 03:25:46 UTC
[jira] Resolved: (TAPESTRY-202) Foreach component fails to query the last item
[ http://issues.apache.org/jira/browse/TAPESTRY-202?page=all ]
Howard M. Lewis Ship resolved TAPESTRY-202:
-------------------------------------------
Resolution: Won't Fix
Assign To: (was: Tapestry Developer List)
This could be addressed by creating a wrapper around the JDBC objects that understood JDBC semantics, but implemented Iterator.
> Foreach component fails to query the last item
> ----------------------------------------------
>
> Key: TAPESTRY-202
> URL: http://issues.apache.org/jira/browse/TAPESTRY-202
> Project: Tapestry
> Type: Bug
> Components: Framework
> Versions: 3.0
> Environment: Operating System: All
> Platform: All
> Reporter: Mikko Holmberg
>
> 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>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org