public boolean containsHeadElement(String keyHint) { boolean contained = false; if (this.topParentHstResponse == null) { contained = this.responseState.containsHeadElement(keyHint); } else if (this != this.topParentHstResponse) { contained = this.topParentHstResponse.containsHeadElement(keyHint); } return contained; }
public boolean containsHeadElement(String keyHint) { boolean contained = false; if (this.topParentHstResponse == null) { contained = this.responseState.containsHeadElement(keyHint); } else if (this != this.topParentHstResponse) { contained = this.topParentHstResponse.containsHeadElement(keyHint); } return contained; }
if (this.keyHint != null && hstResponse.containsHeadElement(this.keyHint)) { return SKIP_BODY; this.keyHint = xmlText; if (hstResponse.containsHeadElement(this.keyHint)) { return SKIP_BODY; this.keyHint = HeadElementUtils.toHtmlString(new HeadElementImpl(element)); if (hstResponse.containsHeadElement(this.keyHint)) { return SKIP_BODY;
if (this.keyHint != null && hstResponse.containsHeadElement(this.keyHint)) { return SKIP_BODY; this.keyHint = xmlText; if (hstResponse.containsHeadElement(this.keyHint)) { return SKIP_BODY; this.keyHint = HeadElementUtils.toHtmlString(new HeadElementImpl(element)); if (hstResponse.containsHeadElement(this.keyHint)) { return SKIP_BODY;
@Override public void processWindowBeforeRender(HstComponentWindow window, HstRequest request, HstResponse response) { HstURL url = createAsyncComponentRenderingURL(request, response); Element hiddenDiv = response.createElement("div"); hiddenDiv.setAttribute("id", url.toString()); hiddenDiv.setAttribute("class", OBFUSCATED_ASYNC_VAR); hiddenDiv.setAttribute("style", "display:none;"); response.addPreamble(hiddenDiv); if (!response.containsHeadElement(HEAD_SCRIPT_KEY_HINT)) { Element headScript = response.createElement("script"); headScript.setAttribute("type","text/javascript"); headScript.setTextContent(getIOScript()); response.addHeadElement(headScript, HEAD_SCRIPT_KEY_HINT); Element endBodyScript = response.createElement("script"); endBodyScript.setAttribute(ContainerConstants.HEAD_ELEMENT_CONTRIBUTION_CATEGORY_HINT_ATTRIBUTE, "scripts"); endBodyScript.setAttribute("type", "text/javascript"); endBodyScript.setTextContent(OBFUSCATED_HIPPO_HST_VAR + ".AsyncPage.load();"); response.addHeadElement(endBodyScript, "asyncLoad"); } }
if (!response.containsHeadElement(AUTO_RELOAD_HEAD_KEY_HINT)) { final Element autoReloadScript = getAutoReloadScriptElement(request, response, autoReload); if (autoReloadScript != null) {