Author: ivaynberg Date: Mon Jul 23 14:37:23 2007 New Revision: 558869 URL: http://svn.apache.org/viewvc?view=rev&rev=558869 Log: optimization for empty repeaters
Modified: incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/repeater/AbstractPageableView.java Modified: incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/repeater/AbstractPageableView.java URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/repeater/AbstractPageableView.java?view=diff&rev=558869&r1=558868&r2=558869 ============================================================================== --- incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/repeater/AbstractPageableView.java (original) +++ incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/repeater/AbstractPageableView.java Mon Jul 23 14:37:23 2007 @@ -245,7 +245,7 @@ * added/deleted between requests */ - if (page >= getPageCount()) + if (page > 0 && page >= getPageCount()) { page = Math.max(getPageCount() - 1, 0); currentPage = page;