@Override public Response getResponse() { return realResponse.getResponse(); }
@Override public Response getResponse() { return realResponse.getResponse(); }
/** * to be overridden by subclass if you don't want to autodetect wether a jquery.js has already * been added, and thus skip adding JQUERY_JS as a JavascriptReference. * * You can either simply return false, or implement your own check to see if a jquery.js * reference has been added either as a HeaderContributor or in a <wicket:head> tag of some page * in the hierarchy. * * @param response * The IHeaderResponse, containing the rendered headers until now * @return true if you want renderHead to include the JQUERY_JS in the head. */ public boolean getIncludeJQueryJS(IHeaderResponse response) { return !JQUERY_REGEXP.matcher(response.getResponse().toString()).matches(); }
if (!response.equals(headerResponse.getResponse())) getRequestCycle().setResponse(headerResponse.getResponse());
if (!response.equals(headerResponse.getResponse())) getRequestCycle().setResponse(headerResponse.getResponse());