Hi again,
sorry for the late response and sorry for the identation, I was quite in a
hurry yesterday.
How would I implement the same thing for 1.2.6? Where should I add code (in
the wicket classes)?
Thanks for the patience,
Konstantinos
Al Maw wrote:
>
> Al Maw wrote:
>> Konstantinos:
>>
>> Firstly, please quit replying with your own text indented with a >, the
>> same as the text you're quoting. It makes it really difficult to see
>> what the heck is going on. ;-)
>>
>> Secondly, I said "onbeforeunload", not "onunload".
>
> I've just added this functionality to trunk (1.3.0-SNAPSHOT).
>
> You can now go:
>
> add(new AbstractDefaultAjaxBehavior() {
>
> public void renderHead(IHeaderResponse response) {
> super.renderHead(response);
> response.renderOnBeforeUnloadJavascript(
> getCallbackScript(false).toString()
> );
> }
>
> protected void respond(AjaxRequestTarget target) {
> // Do stuff here.
> }
> });
>
>
> Regards,
>
> Al
>
> --
> Alastair Maw
> Wicket-biased blog at http://herebebeasties.com
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
--
View this message in context:
http://www.nabble.com/how-to-detect-http-session-expiry---timeout-due-to-no-user-activity-tf3930442.html#a11190891
Sent from the Wicket - User mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user