Re: [Wicket-user] getSession().invalidate() and Wicket 1.2

2006-07-05 Thread Johan Compagner
how do you make youre logoutpage?If that is made in a form request or link then by default we do a redirect after postso the logout page is redirected to instead of directly rendered.johan
On 7/5/06, Mark George <[EMAIL PROTECTED]> wrote:
Thanks Johan.@SuppressWarnings("serial")public class LogoutPage extends WebPage {public LogoutPage() {getRequestCycle().setRedirect(false);}@Override
protected void onEndRequest() {getSession().invalidate();}}did the trick.I don't understand why I need to do this.  There was no setResponse callso why didn't it just display the LogoutPage as it was?
cheers,MarkJohan Compagner wrote:> no it is not broken> But i think what you need to do is call setRedirect(false) on the request> cycle.> Because by default it tries to do a redirect to the response page that you
> set.>> johan>>> On 7/4/06, Mark George <[EMAIL PROTECTED]> wrote: Hi there.>>
>> I am struggling with using getSession().invalidate() when logging out a>> user. I have a reduced my test case to a simple logout page: public class LogoutPage extends WebPage {
 @Override>> protected void onEndRequest() {>> getSession().invalidate();>> } } The associated HTML just displays a "You have been logged out" message.
 The result is _always_ a "Page Expired" response.  No matter where I put>> the invalidate call I always get "Page Expired". I am starting to think that the invalidate method is a bit broken in
>> Wicket 1.2. Can anyone fill me in on the correct way to invalidate a session using>> Wicket 1.2 (that doesn't produce a "Page Expired" response)?
>> Cheers, Mark Using Tomcat but need to do more? Need to support web services, security?>> Get stuff done quickly with pre-integrated technology to make your job
>> easier>> Download IBM WebSphere Application Server v.1.0.1 based on Apache>> Geronimo>> 
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>> ___>> Wicket-user mailing list>> 
Wicket-user@lists.sourceforge.net>> https://lists.sourceforge.net/lists/listinfo/wicket-user> 
>> Using Tomcat but need to do more? Need to support web services, security?> Get stuff done quickly with pre-integrated technology to make your job easier> Download IBM WebSphere Application Server 
v.1.0.1 based on Apache Geronimo> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>> >> ___> Wicket-user mailing list> 
Wicket-user@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/wicket-userUsing Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] getSession().invalidate() and Wicket 1.2

2006-07-04 Thread Mark George
Thanks Johan.

@SuppressWarnings("serial")
public class LogoutPage extends WebPage {

public LogoutPage() {
getRequestCycle().setRedirect(false);
}

@Override
protected void onEndRequest() {
getSession().invalidate();
}

}

did the trick.

I don't understand why I need to do this.  There was no setResponse call
so why didn't it just display the LogoutPage as it was?

cheers,

Mark


Johan Compagner wrote:
> no it is not broken
> But i think what you need to do is call setRedirect(false) on the request
> cycle.
> Because by default it tries to do a redirect to the response page that you
> set.
> 
> johan
> 
> 
> On 7/4/06, Mark George <[EMAIL PROTECTED]> wrote:
>>
>> Hi there.
>>
>> I am struggling with using getSession().invalidate() when logging out a
>> user.
>>
>> I have a reduced my test case to a simple logout page:
>>
>> public class LogoutPage extends WebPage {
>>
>> @Override
>> protected void onEndRequest() {
>> getSession().invalidate();
>> }
>>
>> }
>>
>> The associated HTML just displays a "You have been logged out" message.
>>
>> The result is _always_ a "Page Expired" response.  No matter where I put
>> the invalidate call I always get "Page Expired".
>>
>> I am starting to think that the invalidate method is a bit broken in
>> Wicket 1.2.
>>
>> Can anyone fill me in on the correct way to invalidate a session using
>> Wicket 1.2 (that doesn't produce a "Page Expired" response)?
>>
>>
>> Cheers,
>>
>> Mark
>>
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job
>> easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> 
> 
> 
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> 
> 
> 
> 
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] getSession().invalidate() and Wicket 1.2

2006-07-04 Thread Johan Compagner
no it is not broken But i think what you need to do is call setRedirect(false) on the request cycle.Because by default it tries to do a redirect to the response page that you set.johan
On 7/4/06, Mark George <[EMAIL PROTECTED]> wrote:
Hi there.I am struggling with using getSession().invalidate() when logging out auser.I have a reduced my test case to a simple logout page:public class LogoutPage extends WebPage {@Override
protected void onEndRequest() {getSession().invalidate();}}The associated HTML just displays a "You have been logged out" message.The result is _always_ a "Page Expired" response.  No matter where I put
 the invalidate call I always get "Page Expired".I am starting to think that the invalidate method is a bit broken inWicket 1.2.Can anyone fill me in on the correct way to invalidate a session using
Wicket 1.2 (that doesn't produce a "Page Expired" response)?Cheers,MarkUsing Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user