Thanks for your reply.
Since I don't have much understanding of these things -- I am a kicking and
screaming web GUI developer, can you please tell me if I should use the
redirect command for my error handling code.
Really appreciate your help.
jwcarman wrote:
>
> The setRedirect(true) call
The setRedirect(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.
On Wed, Sep 17, 2008 at 7:45 PM, m_salman <[EMAIL PROTECTED]> wrote:
>
> I am not sure what the getrequestcycle
I am not sure what the getrequestcycle().setredirect(true); is for.
Can you please explain that a little bit. Why can't I just set the response
page.
Is that something special for logouts?
Do I need to use 'setRedirect(true)' for th following also?
catch (ApplicationException ae)
{
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
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
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();
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