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 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