protected final void internalRenderCSSReference(Response response, String url, String media, String condition, String rel) { Args.notEmpty(url, "url"); boolean hasCondition = Strings.isEmpty(condition) == false; if (hasCondition) { if (RequestCycle.get().find(IPartialPageRequestHandler.class).isPresent()) { // WICKET-4894 logger.warn("IE CSS engine doesn't support dynamically injected links in " + "conditional comments. See the javadoc of IHeaderResponse for alternative solution."); } response.write("<!--[if "); response.write(condition); response.write("]>"); } CssUtils.writeLinkUrl(response, url, media, getId(), rel); if (hasCondition) { response.write("<![endif]-->"); } response.write("\n"); }
protected final void internalRenderCSSReference(Response response, String url, String media, String condition, String rel) { Args.notEmpty(url, "url"); boolean hasCondition = Strings.isEmpty(condition) == false; if (hasCondition) { if (RequestCycle.get().find(IPartialPageRequestHandler.class).isPresent()) { // WICKET-4894 logger.warn("IE CSS engine doesn't support dynamically injected links in " + "conditional comments. See the javadoc of IHeaderResponse for alternative solution."); } response.write("<!--[if "); response.write(condition); response.write("]>"); } CssUtils.writeLinkUrl(response, url, media, getId(), rel); if (hasCondition) { response.write("<![endif]-->"); } response.write("\n"); }