wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Barbosa Pinto <marcel.po...@gmail.com>
Subject Re: Manually expire a page
Date Fri, 10 Mar 2017 22:28:30 GMT
Thanks Martin, I'll try it.

On Fri, Mar 10, 2017 at 7:04 PM, Martin Grigorov <mgrigorov@apache.org>
wrote:

> Hi,
>
> See org.apache.wicket.DefaultPageManagerProvider#get().
> You will need to extend org.apache.wicket.page.PageStoreManager and create
> a getter for the passed org.apache.wicket.pageStore.IPageStore.
> Then in your code you could do something like:
>
> ((MyPageManager)
> getSession().getPageManager()).getPageStore().removePage(
> getSession().getId(),
> getPage().getPageId())
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Fri, Mar 10, 2017 at 10:41 PM, Marcel Barbosa Pinto <
> marcel.power@gmail.com> wrote:
>
> > Hi,
> >
> > When the user submits a form, I save the data in #onSubmit() and then
> > redirect it to another page.
> > If the user hits the back button, I need that this versioned page becomes
> > expired.
> >
> > How can I achieve this?
> >
> > --
> >
> > Marcel Barbosa Pinto
> >
>



-- 

Marcel Barbosa Pinto
55 11 98255 8288

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message