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(); }
/** * @see org.apache.wicket.markup.html.IHeaderContributor#renderHead(org.apache.wicket.markup.html.IHeaderResponse) */ public void renderHead(IHeaderResponse response) { Object object = contribution.getObject(); if (object != null) { response.getResponse().println(object.toString()); } }
/** * @see org.apache.wicket.markup.html.IHeaderContributor#renderHead(org.apache.wicket.markup.html.IHeaderResponse) */ public void renderHead(IHeaderResponse response) { Object object = contribution.getObject(); if (object != null) { response.getResponse().println(object.toString()); } }
if (!response.equals(headerResponse.getResponse())) getRequestCycle().setResponse(headerResponse.getResponse());
if (!response.equals(headerResponse.getResponse())) getRequestCycle().setResponse(headerResponse.getResponse());
public final void renderHead(final IHeaderResponse headResponse) Response response = headResponse.getResponse(); final WebRequestCycle cycle = (WebRequestCycle)RequestCycle.get(); final IRequestTarget target = cycle.getRequestTarget();
Response response = headResponse.getResponse(); final WebRequestCycle cycle = (WebRequestCycle)RequestCycle.get(); final IRequestTarget target = cycle.getRequestTarget();