X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;ds=inline;f=wicket%2Fcomponents%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fwicket%2Fbehavior%2FDisableCachingBehavior.java;h=d6ff4d0f619b1e40b409a6e6243a97db4427860e;hb=12bf4fd512f9c41b687f4f8c60778130bcb51f26;hp=ec85de478a57863b1916ad667eacc06310479544;hpb=dd986459bca098f6407d55bcb49f70b5dc8a177c;p=utils diff --git a/wicket/components/src/main/java/org/wamblee/wicket/behavior/DisableCachingBehavior.java b/wicket/components/src/main/java/org/wamblee/wicket/behavior/DisableCachingBehavior.java index ec85de47..d6ff4d0f 100644 --- a/wicket/components/src/main/java/org/wamblee/wicket/behavior/DisableCachingBehavior.java +++ b/wicket/components/src/main/java/org/wamblee/wicket/behavior/DisableCachingBehavior.java @@ -19,16 +19,26 @@ import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.protocol.http.WebResponse; /** + *
* Behavior to disable browser caching. This also means that the page * automatically expires the first time after it is rendered. + *
+ * + *
+ * Important: To make sure that form data cannot be submitted twice for
+ * the same data using the back button, it is still necessary to explicitly call
+ * getPage().getPageMap().remove(getPage());
+ * in the onSubmit
callback of the form.
+ *