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