Timo,
Thanks for the followup, i will give this a try, though i doubt it work
given my understanding that components rendering are linked with an html
page, and in this case i am not sure how would the request-cycle would bind
the target component to one..

Thanks



Timo Rantalaiho wrote:
> 
> On Mon, 07 Jul 2008, mfs wrote:
>> The problem is that since my application pages has various
>> ajax-components
>> in it and not every request results in the whole page being rendered, i
>> am
>> not sure which component to attach this ajaxTimerBehavior with, such that
>> the AjaxTimerBehavior's timer is updated accordingly with every
>> ajax-request
>> (as well).
> 
> Maybe you can create your custom RequestCycle and do something
> like this
> 
> @Override public void detach() {
>     try {
>         AjaxRequestTarget target = AjaxRequestTarget.get();
>       target.addComponent(Mysession.get().getSessionExpiryComponent());
>     } finally {
>         super.detach();
>     }
> }
> 
> I'm not sure if it would work, but in general RequestCycle can 
> be used for making hooks in every request processing.
> 
> Best wishes,
> Timo
> 
> -- 
> Timo Rantalaiho           
> Reaktor Innovations Oy    <URL: http://www.ri.fi/ >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Automatic-redirection-to-Expiry-Page-once-the-session-timeout-is-reached---Possible-options-tp18326963p18346434.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to