[seam-commits] Seam SVN: r8998 - trunk/examples/booking/src/org/jboss/seam/example/booking.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Mon Sep 15 23:08:11 EDT 2008
Author: shane.bryzak at jboss.com
Date: 2008-09-15 23:08:11 -0400 (Mon, 15 Sep 2008)
New Revision: 8998
Modified:
trunk/examples/booking/src/org/jboss/seam/example/booking/HotelSearchingAction.java
Log:
JBSEAM-3176
Modified: trunk/examples/booking/src/org/jboss/seam/example/booking/HotelSearchingAction.java
===================================================================
--- trunk/examples/booking/src/org/jboss/seam/example/booking/HotelSearchingAction.java 2008-09-16 03:00:43 UTC (rev 8997)
+++ trunk/examples/booking/src/org/jboss/seam/example/booking/HotelSearchingAction.java 2008-09-16 03:08:11 UTC (rev 8998)
@@ -1,6 +1,7 @@
//$Id$
package org.jboss.seam.example.booking;
+import java.util.ArrayList;
import java.util.List;
import javax.ejb.Remove;
@@ -51,8 +52,9 @@
.getResultList();
nextPageAvailable = results.size() > pageSize;
- if (nextPageAvailable) {
- hotels = results.subList(0,pageSize);
+ if (nextPageAvailable)
+ {
+ hotels = new ArrayList<Hotel>(results.subList(0,pageSize));
} else {
hotels = results;
}
More information about the seam-commits
mailing list