Author: bwallace
Date: Sat Apr 22 00:42:55 2006
New Revision: 396094
URL: http://svn.apache.org/viewcvs?rev=396094&view=rev
Log:
[TAPESTRY-295] Moved hasNext() call to end of while loop.
Modified:
tapestry/tapestry4/branches/branch-3-0/framework/src/org/apache/tapestry/components/Foreach.java
Modified:
tapestry/tapestry4/branches/branch-3-0/framework/src/org/apache/tapestry/components/Foreach.java
URL:
http://svn.apache.org/viewcvs/tapestry/tapestry4/branches/branch-3-0/framework/src/org/apache/tapestry/components/Foreach.java?rev=396094&r1=396093&r2=396094&view=diff
==============================================================================
---
tapestry/tapestry4/branches/branch-3-0/framework/src/org/apache/tapestry/components/Foreach.java
(original)
+++
tapestry/tapestry4/branches/branch-3-0/framework/src/org/apache/tapestry/components/Foreach.java
Sat Apr 22 00:42:55 2006
@@ -105,7 +105,6 @@
while (hasNext)
{
_value = dataSource.next();
- hasNext = dataSource.hasNext();
if (indexBinding != null)
indexBinding.setInt(_index);
@@ -125,6 +124,7 @@
writer.end();
_index++;
+ hasNext = dataSource.hasNext();
}
}
finally
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]