You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "donxu99@yahoo.com" <do...@yahoo.com> on 2011/09/29 18:09:19 UTC
Can we extend Wicket Filter
I am new to Wicket. I have two questions about filter:
1. Can use Servlet Filter with Wicket Application?
2. If not, can I extend Wicket Filter to handle some logic?
Thanks
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Can-we-extend-Wicket-Filter-tp3856466p3856466.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Can we extend Wicket Filter
Posted by Igor Vaynberg <ig...@gmail.com>.
use whatever mechanism you want to set the "stale" bit on the http session.
then use an irequestcyclelistener#onbeginrequest() and call
requestcycle.replaceall requesthandlers(new
renderpagerequesthandler(new pageprovider(new
mystalesessionpage()))));
-igor
On Thu, Sep 29, 2011 at 1:48 PM, donxu99@yahoo.com <do...@yahoo.com> wrote:
> I need to handle session related logic. Currently the application allow same
> user to create second session if the user login in another machine or try to
> login again in different browser.
>
> Basically I want to kill the first session. If user go back to machine with
> first session open it will tell user the session is not active. It also
> redirect the user to login page if the user click and url that is handled by
> Ajax.
>
> Any suggestions?
>
> Thanks in advance.
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Can-we-extend-Wicket-Filter-tp3856466p3857615.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Can we extend Wicket Filter
Posted by "donxu99@yahoo.com" <do...@yahoo.com>.
I need to handle session related logic. Currently the application allow same
user to create second session if the user login in another machine or try to
login again in different browser.
Basically I want to kill the first session. If user go back to machine with
first session open it will tell user the session is not active. It also
redirect the user to login page if the user click and url that is handled by
Ajax.
Any suggestions?
Thanks in advance.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Can-we-extend-Wicket-Filter-tp3856466p3857615.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Can we extend Wicket Filter
Posted by Igor Vaynberg <ig...@gmail.com>.
On Thu, Sep 29, 2011 at 9:09 AM, donxu99@yahoo.com <do...@yahoo.com> wrote:
> I am new to Wicket. I have two questions about filter:
>
> 1. Can use Servlet Filter with Wicket Application?
yes, you can put one before or after
> 2. If not, can I extend Wicket Filter to handle some logic?
what kind of logic are you looking to handle?
-igor
>
> Thanks
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Can-we-extend-Wicket-Filter-tp3856466p3856466.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org