Re: bookmarkable pages from scala

2009-09-17 Thread Michael Mosmann
Am Donnerstag, den 17.09.2009, 08:06 +0300 schrieb Haim Ashkenazi: OK, I think I've found it. :) getResponsePage(Class) first links to a regular wicket url and only then redirects to a bookmarkable one. This is why it didn't work when invalidating the session :) Any Questions so far? I did

Re: bookmarkable pages from scala

2009-09-17 Thread Haim Ashkenazi
Hi Micheal, On Fri, Sep 18, 2009 at 12:41 AM, Michael Mosmann mich...@mosmann.dewrote: Am Donnerstag, den 17.09.2009, 08:06 +0300 schrieb Haim Ashkenazi: OK, I think I've found it. :) getResponsePage(Class) first links to a regular wicket url and only then redirects to a bookmarkable

bookmarkable pages from scala

2009-09-16 Thread Haim Ashkenazi
Hi I'm trying to run setResponsePage with a class parameter. According to the doc if I run: setResponsePage(MyPage.class) I should get a bookmarkable url ( http://localhost:8080/?wicket:bookmarkablePage=:com...). When trying the same from scala: setResponsePage(classOf[MyPage]) I get a regular

Re: bookmarkable pages from scala

2009-09-16 Thread Michael Mosmann
Am Mittwoch, den 16.09.2009, 16:32 +0300 schrieb Haim Ashkenazi: Hi I'm trying to run setResponsePage with a class parameter. According to the doc if I run: setResponsePage(MyPage.class) some more code? mm:) - To

Re: bookmarkable pages from scala

2009-09-16 Thread Haim Ashkenazi
Hi Michael, On Wed, Sep 16, 2009 at 4:40 PM, Michael Mosmann mich...@mosmann.de wrote: Am Mittwoch, den 16.09.2009, 16:32 +0300 schrieb Haim Ashkenazi: Hi I'm trying to run setResponsePage with a class parameter. According to the doc if I run: setResponsePage(MyPage.class) some

Re: bookmarkable pages from scala

2009-09-16 Thread Michael Mosmann
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.. mm:) p.s.: the javacode for SLink.. is add(new Link(gohome) {

Re: bookmarkable pages from scala

2009-09-16 Thread Haim Ashkenazi
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,

Re: bookmarkable pages from scala

2009-09-16 Thread Haim Ashkenazi
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,

Re: bookmarkable pages from scala

2009-09-16 Thread Haim Ashkenazi
OK, I think I've found it. :) getResponsePage(Class) first links to a regular wicket url and only then redirects to a bookmarkable one. This is why it didn't work when invalidating the session :) Bye On Wed, Sep 16, 2009 at 11:10 PM, Haim Ashkenazi haim.ashken...@gmail.comwrote: Hi again,