Re: error handling and redirect (was: how to logout and redirect)

2008-09-18 Thread Erik van Oosten
It mainly depends on whether you would like to allow a refresh, and how sensitive you are to nice URLs. The key difference is that the user will see that he/she lands on another URL when you called setRedirect(true). After that a refresh will reload the error page. With redirect set to false, t

Re: how to logout and redirect

2008-09-17 Thread m_salman
(true) call tells Wicket to use the Servlet API to > issue a redirect to go to the response page as opposed to just > streaming it back as the response to the current request. > > -- View this message in context: http://www.nabble.com/how-to-logout-and-redirect-tp14878923p1954

Re: how to logout and redirect

2008-09-17 Thread James Carman
t(true); setresponsepage(somepage.class); >> } >> >> -igor >> >> > > -- > View this message in context: > http://www.nabble.com/how-to-logout-and-redirect-tp14878923p19543431.html > Sent from the Wicket - User mailing list archive at Nabble.com. >

Re: how to logout and redirect

2008-09-17 Thread m_salman
> > -- View this message in context: http://www.nabble.com/how-to-logout-and-redirect-tp14878923p19543431.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: how to logout and redirect

2008-01-16 Thread Hoover, William
Add/Edit if necessary http://cwiki.apache.org/confluence/x/FSMB -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 16, 2008 12:06 PM To: users@wicket.apache.org Subject: Re: how to logout and redirect almost but not quiet onclick() { getsession

Re: how to logout and redirect

2008-01-16 Thread Igor Vaynberg
almost but not quiet onclick() { getsession().invalidate(); getrequestcycle().setredirect(true); setresponsepage(somepage.class); } -igor On Jan 16, 2008 3:28 AM, wicket user <[EMAIL PROTECTED]> wrote: > do you really need a Logout page > can't you do some thing like > > > Link logo

Re: how to logout and redirect

2008-01-16 Thread wicket user
do you really need a Logout page can't you do some thing like Link logoutLink = new Link("logoutLink") { private static final long serialVersionUID = 1L; public void onClick() { session.invalidateNow();

Re: how to logout and redirect

2008-01-16 Thread Maurice Marrink
try using invalidate() instead of invalidateNow Maurice On Jan 16, 2008 12:22 PM, <[EMAIL PROTECTED]> wrote: > Hi: > I used the following for logout > Logout extend WebPage{ > getSession().invalidateNow() > getResponse().redirect(".") > > When the link is clicked, it says > Already redirecting

how to logout and redirect

2008-01-16 Thread dvd
Hi: I used the following for logout Logout extend WebPage{    getSession().invalidateNow()    getResponse().redirect(".") When the link is clicked, it says Already redirecting to "." Cannot redirect more than once What would be the solution.  (interestingly, the above worked a while ago) Now I am