@Override public int doStartTag() throws JspException { PortletResponse portletResponse = (PortletResponse) pageContext.getRequest().getAttribute( Constants.PORTLET_RESPONSE); if (portletResponse != null) { PortletURL portletURL = createPortletUrl(portletResponse); setUrl(portletURL); handlePMandWS(); } return super.doStartTag(); }
@Override public int doEndTag() throws JspException{ if(Boolean.parseBoolean(copyCurrentRenderParameters)){ /*prepend current render parameters*/ doCopyCurrentRenderParameters(); } return super.doEndTag(); }
@Override public int doStartTag() throws JspException { handleDefaultEscapeXML(); if (copyCurrentRenderParameters != null && !copyCurrentRenderParameters.equalsIgnoreCase("true") && !copyCurrentRenderParameters.equalsIgnoreCase("false")) { StringBuilder txt = new StringBuilder(128); txt.append("Invalid cacheability option: ").append(copyCurrentRenderParameters); txt.append(", valid options: true, false"); throw new JspException(txt.toString()); } return super.doStartTag(); }
PortletURL portletURL = createPortletUrl(portletResponse); setUrl(portletURL);
@Override public int doEndTag() throws JspException{ if(copyCurrentRenderParameters){ /*prepend current render parameters*/ doCopyCurrentRenderParameters(); } return super.doEndTag(); }
@Override public int doStartTag() throws JspException { PortletConfig portletConfig = (PortletConfig) pageContext.getRequest().getAttribute(Constants.PORTLET_CONFIG); Map<String,String[]> containerRuntimeOptions = portletConfig.getContainerRuntimeOptions(); if (containerRuntimeOptions != null){ String[] result = containerRuntimeOptions.get(Constants.ESCAPE_XML_RUNTIME_OPTION); if (result != null){ if (result.length > 0){ if (result[0].equals(true)) escapeXml = true; else if (result[0].equals(false)) escapeXml = false; } } } return super.doStartTag(); }