Re: Manually expire a page

2017-03-10 Thread Marcel Barbosa Pinto
Thanks Martin, I'll try it.

On Fri, Mar 10, 2017 at 7:04 PM, Martin Grigorov 
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.po...@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


Re: Manually expire a page

2017-03-10 Thread Martin Grigorov
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.po...@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
>


Manually expire a page

2017-03-10 Thread Marcel Barbosa Pinto
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