protected void renderOutput(FacesContext facesContext, UIComponent component) throws IOException { String text = org.apache.myfaces.shared_impl.renderkit.RendererUtils.getStringValue(facesContext, component); if (log.isLoggable(Level.FINE)) log.fine("renderOutput '" + text + "'"); boolean escape; if (component instanceof HtmlOutputText || component instanceof EscapeCapable) { escape = ((HtmlOutputText)component).isEscape(); } else { escape = RendererUtils.getBooleanAttribute(component, org.apache.myfaces.shared_impl.renderkit.JSFAttr.ESCAPE_ATTR, true); //default is to escape } renderOutputText(facesContext, component, text, escape); }
protected void renderOutput(FacesContext facesContext, UIComponent component) throws IOException { String text = org.apache.myfaces.shared_impl.renderkit.RendererUtils.getStringValue(facesContext, component); if (log.isLoggable(Level.FINE)) log.fine("renderOutput '" + text + "'"); boolean escape; if (component instanceof HtmlOutputText || component instanceof EscapeCapable) { escape = ((HtmlOutputText)component).isEscape(); } else { escape = RendererUtils.getBooleanAttribute(component, org.apache.myfaces.shared_impl.renderkit.JSFAttr.ESCAPE_ATTR, true); //default is to escape } renderOutputText(facesContext, component, text, escape); }
protected static void renderOutput(FacesContext facesContext, UIComponent component) throws IOException { String text = org.apache.myfaces.shared_impl.renderkit.RendererUtils.getStringValue(facesContext, component); if (log.isDebugEnabled()) log.debug("renderOutput '" + text + "'"); boolean escape; if (component instanceof HtmlOutputText || component instanceof EscapeCapable) { escape = ((HtmlOutputText)component).isEscape(); } else { escape = RendererUtils.getBooleanAttribute(component, org.apache.myfaces.shared_impl.renderkit.JSFAttr.ESCAPE_ATTR, true); //default is to escape } renderOutputText(facesContext, component, text, escape); }
protected static void renderOutput(FacesContext facesContext, UIComponent component) throws IOException { String text = org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.getStringValue(facesContext, component); boolean escape; if (component instanceof HtmlOutputText || component instanceof EscapeCapable) { escape = ((HtmlOutputText)component).isEscape(); } else { escape = RendererUtils.getBooleanAttribute(component, org.apache.myfaces.shared_tomahawk.renderkit.JSFAttr.ESCAPE_ATTR, true); //default is to escape } renderOutputText(facesContext, component, text, escape); }
protected static void renderOutput(FacesContext facesContext, UIComponent component) throws IOException { String text = org.apache.myfaces.shared_orchestra.renderkit.RendererUtils.getStringValue(facesContext, component); boolean escape; if (component instanceof HtmlOutputText || component instanceof EscapeCapable) { escape = ((HtmlOutputText)component).isEscape(); } else { escape = RendererUtils.getBooleanAttribute(component, org.apache.myfaces.shared_orchestra.renderkit.JSFAttr.ESCAPE_ATTR, true); //default is to escape } renderOutputText(facesContext, component, text, escape); }
protected void encodeHtmlOutputTextEnd(FacesContext context, HtmlOutputText htmlOutputText) throws IOException { ResponseWriter writer = context.getResponseWriter(); boolean startSpan = false; if (containsAttributeForRender(htmlOutputText, ignoreComponent)) { writer.startElement(JsfConstants.SPAN_ELEM, htmlOutputText); startSpan = true; RendererUtil.renderIdAttributeIfNecessary(writer, htmlOutputText, getIdForRender(context, htmlOutputText)); renderRemainAttributes(htmlOutputText, writer, ignoreComponent); } String value = ValueHolderUtil.getValueForRender(context, htmlOutputText); if (htmlOutputText.isEscape()) { writer.writeText(value, null); } else { writer.write(value); } if (startSpan) { writer.endElement(JsfConstants.SPAN_ELEM); } }
if (component instanceof HtmlOutputText || component instanceof EscapeCapable) escape = ((HtmlOutputText)component).isEscape();
if (component instanceof HtmlOutputText || component instanceof EscapeCapable) escape = ((HtmlOutputText)component).isEscape();
protected void encodeHtmlOutputTextEnd(FacesContext context, HtmlOutputText htmlOutputText) throws IOException { final THtmlOutputText text = (THtmlOutputText) htmlOutputText; final ResponseWriter writer = context.getResponseWriter(); final String id = getIdForRender(context, htmlOutputText); boolean renderTag = false; final boolean invisible = text.isInvisible(); final boolean omittag = text.isOmittag(); if (containsAttributeForRender(htmlOutputText, getIgnoreAttribute())) { if (!(invisible || omittag)) { writer.startElement(text.getTagName(), htmlOutputText); renderTag = true; RendererUtil.renderIdAttributeIfNecessary(writer, htmlOutputText, id); renderRemainAttributes(htmlOutputText, writer, getIgnoreAttribute()); } } final String value = ValueHolderUtil.getValueForRender(context, htmlOutputText); if (htmlOutputText.isEscape()) { writer.writeText(value, null); } else { writer.write(value); } if (renderTag) { writer.endElement(text.getTagName()); } }