Author: ivaynberg
Date: Sat Dec 15 10:10:34 2007
New Revision: 604472

URL: http://svn.apache.org/viewvc?rev=604472&view=rev
Log:
looks like abstract pageable view wasnt clearing its caches in ondetach()

Modified:
    
wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/repeater/AbstractPageableView.java

Modified: 
wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/repeater/AbstractPageableView.java
URL: 
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/repeater/AbstractPageableView.java?rev=604472&r1=604471&r2=604472&view=diff
==============================================================================
--- 
wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/repeater/AbstractPageableView.java
 (original)
+++ 
wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/repeater/AbstractPageableView.java
 Sat Dec 15 10:10:34 2007
@@ -66,7 +66,7 @@
         * potentially be expensive ( a select count query ) and so we do not 
want to execute it
         * multiple times.
         */
-       private int cachedItemCount;
+       private transient int cachedItemCount;
 
 
        /** @see org.apache.wicket.Component#Component(String, IModel) */
@@ -389,5 +389,9 @@
 
        };
 
-
+       protected void onDetach()
+       {
+               clearCachedItemCount();
+               super.onDetach();
+       }
 }


Reply via email to