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

Reply via email to