AW: signout and redirect

2010-03-25 Thread Giambalvo, Christian
Depends on what your SSISignOutPage.class does. But why don't use setResponsePage(SSISignOutPage.class) ?? -Ursprüngliche Nachricht- Von: tubin gen [mailto:fachh...@gmail.com] Gesendet: Donnerstag, 25. März 2010 12:59 An: users Betreff: signout and redirect here is my code to signout

Re: AW: signout and redirect

2010-03-25 Thread fachhoch
I initially tried etResponsePage(SSISignOutPage.class) it did not worked , so used the new approach , regarding what my SSISignOutPage it does nothing except for showing a link , before to that the control never goes to the page constructor , I am assuming after a session is invalidated

AW: AW: signout and redirect

2010-03-25 Thread Giambalvo, Christian
setResponsePage(SSISignOutPage.class) creates a new page that will go into pagemap. Is your Page class in a protected area? -Ursprüngliche Nachricht- Von: fachhoch [mailto:fachh...@gmail.com] Gesendet: Donnerstag, 25. März 2010 15:19 An: users@wicket.apache.org Betreff: Re: AW: signout

Re: AW: signout and redirect

2010-03-25 Thread Mauro Ciancio
In order to implement my sign out page I've created a SignOutPage that invokes the signOut method in AuthenticatedWebSession, then setRedirect(true) and as final step I throw a: throw new RestartResponseException(HomePage.class). This makes the home page be processed (and the url in the

Re: AW: AW: signout and redirect

2010-03-25 Thread fachhoch
An: users@wicket.apache.org Betreff: Re: AW: signout and redirect I initially tried etResponsePage(SSISignOutPage.class) it did not worked , so used the new approach , regarding what my SSISignOutPage it does nothing except for showing a link , before to that the control never goes

Re: AW: signout and redirect

2010-03-25 Thread fachhoch
I did as u said public class AuditSignOutPage extends SignOutPage { public AuditSignOutPage() { ((AuditWebSession)(Session.get())).signout(); setRedirect(true); throw new RestartResponseException(SSISignOutPage.class); } }

Re: AW: signout and redirect

2010-03-25 Thread James Carman
This works for me: final Link signOutLink = new Link(signOutLink) { public void onClick() { getSession().invalidate(); setResponsePage(getApplication().getHomePage()); setRedirect(true); }

Re: AW: signout and redirect

2010-03-25 Thread fachhoch
does encryption has anything to do with this upon debugging I found its failing in CryptedUrlWebRequestCodingStrategy.java here is the method where it fails protected String decodeURL(final String url) { int startIndex = url.indexOf(?x=); if

Re: AW: signout and redirect

2010-03-25 Thread James Carman
By default, Wicket uses the KeyInSessionSunJceCryptFactory which stores the encryption key in the user's session. On Thu, Mar 25, 2010 at 11:50 AM, fachhoch fachh...@gmail.com wrote: does encryption has anything to do with this   upon debugging I found its failing  in

Re: AW: signout and redirect

2010-03-25 Thread fachhoch
so what is the solution for my case ? James Carman-3 wrote: By default, Wicket uses the KeyInSessionSunJceCryptFactory which stores the encryption key in the user's session. On Thu, Mar 25, 2010 at 11:50 AM, fachhoch fachh...@gmail.com wrote: does encryption has anything to do with this