Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
IHeaderResponse should have a method:
public void renderOnBeforeUnloadJavascript(String javascript);
Such that you can 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. }});