On Tue, May 17, 2011 at 7:18 PM, Martin Grigorov <mgrigo...@apache.org>wrote:

> The idea is :
>
> setResponsePage(new NewPage(getPageReference()))
>
> later in NewPage you can do:
> Link linkToPreviousPage = new BookmarkablePageLink("link",
> previousPageRef.getPage().getClass())
>

Or even : setResponsePage(previousPageRef.getPage())

>
>
> On Tue, May 17, 2011 at 7:11 PM, Vitor Granzinoli Vellozo <
> vitor.vell...@cpmbraxis.com> wrote:
>
>>
>> Igor,
>>
>> I had a problem with getPageReference().
>> I need go back to the preview page. So, from the Page2, go to Page1. The
>> getPageReference() method
>> do not gave me preview Page. It gave me the same Page.
>>
>> Is there a way to get the Page.class reference of the preview Page?
>>
>> The code I've tested getPageReference() is:
>>
>> PageReference reference = getPage().getPageReference();
>> setResponsePage(reference.getPage());
>>
>> Some ligth?
>>
>>
>> Thanks a lot,
>> Vitor
>>
>>
>>
>> -----Mensagem original-----
>> De: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
>> Enviada em: terça-feira, 17 de maio de 2011 13:40
>> Para: users@wicket.apache.org
>> Assunto: Re: Last Page visited
>>
>> you can pass PageReference objects around. see Page#getPageReference()
>>
>> -igor
>>
>> On Tue, May 17, 2011 at 7:38 AM, Vitor Granzinoli Vellozo
>> <vitor.vell...@cpmbraxis.com> wrote:
>> >
>> >
>> > Wicketers,
>> >
>> >
>> >
>> > What is the Best way to store the last Page visited? My business need
>> > that to create a Page control to make
>> >
>> > a special back action, not the back browser action. In this case, my
>> > application is inside another.
>> >
>> >
>> >
>> > Thanks,
>> >
>> > Vitor
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
> --
> Martin Grigorov
> jWeekend
>  Training, Consulting, Development
> http://jWeekend.com <http://jweekend.com/>
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>

Reply via email to