Author: manaRH
Date: 2008-10-24 07:03:10 -0400 (Fri, 24 Oct 2008)
New Revision: 9416
Modified:
branches/enterprise/JBPAPP_4_3_FP01/examples/booking/src/org/jboss/seam/example/booking/HotelSearchingAction.java
Log:
JBPAPP-1320
Modified:
branches/enterprise/JBPAPP_4_3_FP01/examples/booking/src/org/jboss/seam/example/booking/HotelSearchingAction.java
===================================================================
---
branches/enterprise/JBPAPP_4_3_FP01/examples/booking/src/org/jboss/seam/example/booking/HotelSearchingAction.java 2008-10-24
10:55:18 UTC (rev 9415)
+++
branches/enterprise/JBPAPP_4_3_FP01/examples/booking/src/org/jboss/seam/example/booking/HotelSearchingAction.java 2008-10-24
11:03:10 UTC (rev 9416)
@@ -2,6 +2,7 @@
package org.jboss.seam.example.booking;
import java.util.List;
+import java.util.ArrayList;
import javax.ejb.Remove;
import javax.ejb.Stateful;
@@ -54,7 +55,7 @@
nextPageAvailable = results.size() > pageSize;
if (nextPageAvailable) {
- hotels = results.subList(0,pageSize);
+ hotels = new ArrayList<Hotel>(results.subList(0,pageSize));
} else {
hotels = results;
}
Show replies by date