I've found that one of the core JQuery classes renders javascript with
response.renderString method (
org.wicketstuff.jquery.JQueryBehavior.renderHead(IHeaderResponse) ):

    @Override
    public void renderHead(IHeaderResponse response) {
        try {
            super.renderHead(response);
            if(getIncludeJQueryJS(response)) {
                    response.renderJavascriptReference(JQUERY_JS);
                    if
(Application.DEVELOPMENT.equals(Application.get().getConfigurationType()))
{
                        response.renderJavascriptReference(JQUERY_DEBUG_JS);
                    }
            }
            CharSequence script = getOnReadyScript();
            if ((script != null) && (script.length() > 0)) {
                StringBuilder builder = new StringBuilder();
                builder.append("<script
type=\"text/javascript\">\n$(document).ready(function(){\n");
                builder.append(script);
                builder.append("\n});</script>");
                response.renderString(builder.toString());
            }
        } catch (RuntimeException exc) {
            throw exc;
        } catch (Exception exc) {
            throw new RuntimeException("wrap: " + exc.getMessage(), exc);
        }
    }

This disables javascript filtering in JavascriptFilteredIntoFooterHeaderResponse


Can someone create an issue for org.wicketstuff.jquery guys to change
renderString to renderJavascript?


The author of this class is author David Bernard (dwayne) :)


Thank you!



Žilvinas Vilutis

Mobile:   (+370) 652 38353
E-mail:   cika...@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to