(no commit message)
[utils] / wicket / components / src / main / java / org / wamblee / wicket / page / PageBehavior.java
index dbaf7dc0c749a37de5c2d5cb2381cc9cb60ea600..a8d4f9317f3fbad585502efb8db9008aeed68ca9 100644 (file)
@@ -22,7 +22,7 @@ import org.apache.wicket.protocol.http.WebResponse;
 
 /**
  * Page behavior interface. This provides a mechanism to extend page behavior
- * without subclassing.
+ * without subclassing. Implementations of this interface should be serializable. 
  * 
  * @author Erik Brakkee
  */
@@ -53,4 +53,9 @@ public interface PageBehavior extends Serializable {
      *            Page this is called for.
      */
     void onAfterRender(WebPage aPage);
+    
+    /**
+     * To be called in the {@link Page#onDetach
+     */
+    void onDetach(WebPage aPage);
 }