Im +1 for changing the example. It is rather strange. -Igor > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Eelco Hillenius > Sent: Thursday, August 25, 2005 10:01 AM > To: [email protected] > Subject: Re: [Wicket-user] Logout > > Hi, > > That part still is a bit rough... We should fail gracefully > if we regconize our session is empty, and render the home page then. > > However, this works: > > add(new Link("logoff") > { > public void onClick() > { > getSession().invalidate(); > setResponsePage(Home.class); > } > }); > > One question... I know it is in the example to have logging > off implemented as a bookmarkable page. I don't really get > why you should do that though? Logging off only has meaning > when allready in a session, and it just doesn't look logical > to logoff via a new page you're not even going to render. > Readers have any reasons? And if not, shouldn't we change the example? > > Eelco > > On 8/25/05, Dzenan Ridjanovic <[EMAIL PROTECTED]> wrote: > > In my LogoutPage I have only this constructor: > > > > public LogoutPage() { > > if (getLoginSession().isMemberLoggedIn()) { > > getSession().invalidate(); > > setResponsePage(getApplicationPages().getHomePage()); > > } > > } > > > > Even with setResponsePage(getApplicationPages().getHomePage()); > > I do not get the home page but the Wicket page: > > Page Expired > > The page you requested has expired. > > Return to home page > > > > How can I replace the Wicket page with my home page? > > > > Dzenan > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > > Practices Agile & Plan-Driven Development * Managing > Projects & Teams > > * Testing & QA Security * Process Improvement & Measurement * > > http://www.sqe.com/bsce5sf > > _______________________________________________ > > Wicket-user mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & > EXPO September 19-22, 2005 * San Francisco, CA * Development > Lifecycle Practices Agile & Plan-Driven Development * > Managing Projects & Teams * Testing & QA Security * Process > Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Wicket-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wicket-user > > >
------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
