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 logoutLink = new Link("logoutLink")
>             {
>                 private static final long serialVersionUID = 1L;
>
>                 public void onClick()
>                 {
>                     session.invalidateNow();
>                     setResponsePage(WhereEverYouWantToRedirect.class);
>                 }
>             };
>
> Regards
> Dipu
>
>
> On Jan 16, 2008 11:22 AM, <[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 to "." Cannot redirect more than once
> >
> > What would be the solution. (interestingly, the above worked
> > a while ago) Now I am using 1.3 final.
> >
> > BTW, I tried adding a button inside a form and use onSubmit callback
> > instead of the normal submit type. The button does not respond at all
> > and the html code shows there is not any way that the browser would
> > send back request.
> > <form> <input type="button" value="cancel"> </form>
> > in Java new button(){onSubmit())
> >
> > A lot of surprises once getting into more in Wicket
> >
> > Thanks
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to