Class DisableCachingBehavior

  extended by
      extended by
All Implemented Interfaces:, 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.

Erik Brakkee
See Also:
Serialized Form

Constructor Summary
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
onAfterRender, onBeforeRender, onDetach
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public DisableCachingBehavior()
Method Detail


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
setHeaders in class AbstractPageBehavior
aPage - Page this is called for.
aResponse - Response to set headers for.

Copyright © 2022. All Rights Reserved.