/** * @see org.apache.wicket.jmx.DebugSettingsMBean#isAjaxDebugModeEnabled() */ @Override public boolean isAjaxDebugModeEnabled() { return application.getDebugSettings().isAjaxDebugModeEnabled(); }
if (getDebugSettings().isAjaxDebugModeEnabled()) { getDebugSettings().setComponentPathAttributeName("syncope-path");
/** * Contributes the Ajax backing library plus wicket-event.js and wicket-ajax.js implementations. * Additionally if Ajax debug is enabled then wicket-ajax-debug.js implementation is also added. * * @param application * the application instance * @param response * the current header response */ public static void contributeAjax(final Application application, final IHeaderResponse response) { JavaScriptLibrarySettings jsLibrarySettings = application.getJavaScriptLibrarySettings(); final DebugSettings debugSettings = application.getDebugSettings(); if (debugSettings.isAjaxDebugModeEnabled()) { response.render(JavaScriptHeaderItem.forReference(jsLibrarySettings.getWicketAjaxDebugReference())); response.render(JavaScriptHeaderItem.forScript("Wicket.Ajax.DebugWindow.enabled=true;", "wicket-ajax-debug-enable")); } else { ResourceReference wicketAjaxReference = jsLibrarySettings.getWicketAjaxReference(); response.render(JavaScriptHeaderItem.forReference(wicketAjaxReference)); } } }
/** * Contributes the Ajax backing library plus wicket-event.js and wicket-ajax.js implementations. * Additionally if Ajax debug is enabled then wicket-ajax-debug.js implementation is also added. * * @param application * the application instance * @param response * the current header response */ public static void contributeAjax(final Application application, final IHeaderResponse response) { JavaScriptLibrarySettings jsLibrarySettings = application.getJavaScriptLibrarySettings(); final DebugSettings debugSettings = application.getDebugSettings(); if (debugSettings.isAjaxDebugModeEnabled()) { response.render(JavaScriptHeaderItem.forReference(jsLibrarySettings.getWicketAjaxDebugReference())); response.render(JavaScriptHeaderItem.forScript("Wicket.Ajax.DebugWindow.enabled=true;", "wicket-ajax-debug-enable")); } else { ResourceReference wicketAjaxReference = jsLibrarySettings.getWicketAjaxReference(); response.render(JavaScriptHeaderItem.forReference(wicketAjaxReference)); } } }