Hi again,

Now I'm really confused ...

I've followed my code in the debugger and It does follow the correct path.
so now I'm really confused. Did I misunderstood the book? what is the
difference between setResponsePage(new HomePage()) and
setResponsePage(HomePage.class)?

Bye

On Wed, Sep 16, 2009 at 10:18 PM, Haim Ashkenazi
<haim.ashken...@gmail.com>wrote:

> Hi MIcheal,
>
> On Wed, Sep 16, 2009 at 6:52 PM, Michael Mosmann <mich...@mosmann.de>wrote:
>
>> Hi,
>>
>> After Session.invalidate everything is cleaned up..
>> change your code from
>>
>> add (new SLink("gohome", {setResponsePage(classOf[HomePage])}))
>>
>> to
>>
>> add(new BookmarkablePageLing("gohome", classOf[HomePage]));
>>
>> and it will work..
>>
> Yup this indeed solve the problem :)
>
> I have a question though (as you can see I'm  a scala and wicket noob).
> From reading wicket-in-action, I understood that the difference between
> setResponsePage(new HomePage()) and setResponsePage(HomePage.class) is  that
> the second one causes a redirect to a link like  like
> http://localhost:8080/?wicket:bookmarkablePage=:com... instead of the
> regular wicket url. This should also solve the "page expires" problem, isn't
> it?
> The session.invalidate should indeed invalidate the regular session but it
> should accept the "bookmarkable..." link.
>
> BTW, following the wicket source setResponsePage(Class) is routed to
> BookmarkablePageRequestTarget...
>
> Am I missing something? I still don't get why setResponsePage(new
> HomePage()) and setResponsePage(classOf[HomePage]) gets the same result.
>
> Thanks for your answer. It dd solve the problem :)
> --
> Haim
>



-- 
Haim

Reply via email to