remove the selfupdating one, and just leave the timer. you dont need to put
anything into the ontimer() event, the point is that the behavior generated
a callback to the page so it keeps your session alive.

-igor


On 1/10/07, suranjay <[EMAIL PROTECTED]> wrote:


Thank you!

I put the following code in the constructor of my web-pages.

add(new AjaxSelfUpdatingTimerBehavior(Duration.minutes(10)));
                add(new AbstractAjaxTimerBehavior(Duration.minutes(10))
                {
                        /**
                         * @see
wicket.ajax.AbstractAjaxTimerBehavior#onTimer(
wicket.ajax.AjaxRequestTarget)
                         */
                        protected void onTimer(AjaxRequestTarget target)
                        {

                        }
                });

I put both of 'em in for good measure.
Is this supposed to do the trick?
What shud I put inside the onTimer() method to ping the server?
I have no Wicket Ajax componenets on the page.

As always, any help is greatly appreciated.
--
View this message in context:
http://www.nabble.com/Expiring-Pages-tf2946013.html#a8256584
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to