org.wamblee.wicket.page
Class DisableCachingBehavior

java.lang.Object
  extended by org.wamblee.wicket.page.AbstractPageBehavior
      extended by org.wamblee.wicket.page.DisableCachingBehavior
All Implemented Interfaces:
java.io.Serializable, PageBehavior

public class DisableCachingBehavior
extends AbstractPageBehavior

Behavior to disable browser caching.

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.

Author:
Erik Brakkee
See Also:
Serialized Form

Constructor Summary
DisableCachingBehavior()
           
 
Method Summary
 void setHeaders(org.apache.wicket.markup.html.WebPage aPage, org.apache.wicket.protocol.http.WebResponse aResponse)
          To be called as part of the Page's setHeaders
 
Methods inherited from class org.wamblee.wicket.page.AbstractPageBehavior
onAfterRender, onBeforeRender, onDetach
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisableCachingBehavior

public DisableCachingBehavior()
Method Detail

setHeaders

public void setHeaders(org.apache.wicket.markup.html.WebPage aPage,
                       org.apache.wicket.protocol.http.WebResponse aResponse)
Description copied from interface: PageBehavior
To be called as part of the Page's setHeaders

Specified by:
setHeaders in interface PageBehavior
Overrides:
setHeaders in class AbstractPageBehavior
Parameters:
aPage - Page this is called for.
aResponse - Response to set headers for.


Copyright © 2022. All Rights Reserved.