@Override public void encodeChildren(FacesContext context, UIComponent component) throws IOException { rendererParamsNotNull(context, component); if (!shouldEncodeChildren(component)) { return; } // Render our children recursively Iterator<UIComponent> kids = getChildren(component); while (kids.hasNext()) { encodeRecursive(context, kids.next()); } }
@Override public void encodeBegin(FacesContext context, UIComponent component) throws IOException { rendererParamsNotNull(context, component); if (!shouldEncode(component)) { return; } // Render a span around this group if necessary String style = (String) component.getAttributes().get("style"); String styleClass = (String) component.getAttributes().get("styleClass"); ResponseWriter writer = context.getResponseWriter(); if (divOrSpan(component)) { if (("block".equals(component.getAttributes().get("layout")))) { writer.startElement("div", component); } else { writer.startElement("span", component); } writeIdAttributeIfNecessary(context, writer, component); if (styleClass != null) { writer.writeAttribute("class", styleClass, "styleClass"); } if (style != null) { writer.writeAttribute("style", style, "style"); } } }
@Override public void encodeEnd(FacesContext context, UIComponent component) throws IOException { rendererParamsNotNull(context, component); if (!shouldEncode(component)) { return; } // Close our span element if necessary ResponseWriter writer = context.getResponseWriter(); if (divOrSpan(component)) { if ("block".equals(component.getAttributes().get("layout"))) { writer.endElement("div"); } else { writer.endElement("span"); } } }
/** * @param component <code>UIComponent</code> for this group * * @return <code>true</code> if we need to render a div or span element * around this group. */ private boolean divOrSpan(UIComponent component) { return (shouldWriteIdAttribute(component) || (component.getAttributes().get("style") != null) || (component.getAttributes().get("styleClass") != null)); }
@Override public void encodeBegin(FacesContext context, UIComponent component) throws IOException { rendererParamsNotNull(context, component); if (!shouldEncode(component)) { return; } // Render a span around this group if necessary String style = (String) component.getAttributes().get("style"); String styleClass = (String) component.getAttributes().get("styleClass"); ResponseWriter writer = context.getResponseWriter(); if (divOrSpan(component)) { if (("block".equals(component.getAttributes().get("layout")))) { writer.startElement("div", component); } else { writer.startElement("span", component); } writeIdAttributeIfNecessary(context, writer, component); if (styleClass != null) { writer.writeAttribute("class", styleClass, "styleClass"); } // JAVASERVERFACES-3270: do not manually render "style" as it is handled // in renderPassThruAttributes(). } RenderKitUtils.renderPassThruAttributes(context, writer, component, ATTRIBUTES); }
@Override public void encodeEnd(FacesContext context, UIComponent component) throws IOException { rendererParamsNotNull(context, component); if (!shouldEncode(component)) { return; } // Close our span element if necessary ResponseWriter writer = context.getResponseWriter(); if (divOrSpan(component)) { if ("block".equals(component.getAttributes().get("layout"))) { writer.endElement("div"); } else { writer.endElement("span"); } } }
/** * @param component <code>UIComponent</code> for this group * * @return <code>true</code> if we need to render a div or span element * around this group. */ private boolean divOrSpan(UIComponent component) { return (shouldWriteIdAttribute(component) || (component.getAttributes().get("style") != null) || (component.getAttributes().get("styleClass") != null)); }
@Override public void encodeChildren(FacesContext context, UIComponent component) throws IOException { rendererParamsNotNull(context, component); if (!shouldEncodeChildren(component)) { return; } // Render our children recursively Iterator<UIComponent> kids = getChildren(component); while (kids.hasNext()) { encodeRecursive(context, kids.next()); } }
@Override public void encodeBegin(FacesContext context, UIComponent component) throws IOException { rendererParamsNotNull(context, component); if (!shouldEncode(component)) { return; } // Render a span around this group if necessary String style = (String) component.getAttributes().get("style"); String styleClass = (String) component.getAttributes().get("styleClass"); ResponseWriter writer = context.getResponseWriter(); if (divOrSpan(component)) { if (("block".equals(component.getAttributes().get("layout")))) { writer.startElement("div", component); } else { writer.startElement("span", component); } writeIdAttributeIfNecessary(context, writer, component); if (styleClass != null) { writer.writeAttribute("class", styleClass, "styleClass"); } // JAVASERVERFACES-3270: do not manually render "style" as it is handled // in renderPassThruAttributes(). } RenderKitUtils.renderPassThruAttributes(context, writer, component, ATTRIBUTES); }
@Override public void encodeEnd(FacesContext context, UIComponent component) throws IOException { rendererParamsNotNull(context, component); if (!shouldEncode(component)) { return; } // Close our span element if necessary ResponseWriter writer = context.getResponseWriter(); if (divOrSpan(component)) { if ("block".equals(component.getAttributes().get("layout"))) { writer.endElement("div"); } else { writer.endElement("span"); } } }
/** * @param component <code>UIComponent</code> for this group * * @return <code>true</code> if we need to render a div or span element * around this group. */ private boolean divOrSpan(UIComponent component) { return (shouldWriteIdAttribute(component) || (component.getAttributes().get("style") != null) || (component.getAttributes().get("styleClass") != null)); }
@Override public void encodeChildren(FacesContext context, UIComponent component) throws IOException { rendererParamsNotNull(context, component); if (!shouldEncodeChildren(component)) { return; } // Render our children recursively Iterator<UIComponent> kids = getChildren(component); while (kids.hasNext()) { encodeRecursive(context, kids.next()); } }
@Override public void encodeBegin(FacesContext context, UIComponent component) throws IOException { rendererParamsNotNull(context, component); if (!shouldEncode(component)) { return; } // Render a span around this group if necessary String style = (String) component.getAttributes().get("style"); String styleClass = (String) component.getAttributes().get("styleClass"); ResponseWriter writer = context.getResponseWriter(); if (divOrSpan(component)) { if (("block".equals(component.getAttributes().get("layout")))) { writer.startElement("div", component); } else { writer.startElement("span", component); } writeIdAttributeIfNecessary(context, writer, component); if (styleClass != null) { writer.writeAttribute("class", styleClass, "styleClass"); } // JAVASERVERFACES-3270: do not manually render "style" as it is handled // in renderPassThruAttributes(). } RenderKitUtils.renderPassThruAttributes(context, writer, component, ATTRIBUTES); }
@Override public void encodeEnd(FacesContext context, UIComponent component) throws IOException { rendererParamsNotNull(context, component); if (!shouldEncode(component)) { return; } // Close our span element if necessary ResponseWriter writer = context.getResponseWriter(); if (divOrSpan(component)) { if ("block".equals(component.getAttributes().get("layout"))) { writer.endElement("div"); } else { writer.endElement("span"); } } }
/** * @param component <code>UIComponent</code> for this group * * @return <code>true</code> if we need to render a div or span element * around this group. */ private boolean divOrSpan(UIComponent component) { return (shouldWriteIdAttribute(component) || (component.getAttributes().get("style") != null) || (component.getAttributes().get("styleClass") != null)); }
@Override public void encodeChildren(FacesContext context, UIComponent component) throws IOException { rendererParamsNotNull(context, component); if (!shouldEncodeChildren(component)) { return; } // Render our children recursively Iterator<UIComponent> kids = getChildren(component); while (kids.hasNext()) { encodeRecursive(context, kids.next()); } }
@Override public void encodeBegin(FacesContext context, UIComponent component) throws IOException { rendererParamsNotNull(context, component); if (!shouldEncode(component)) { return; } // Render a span around this group if necessary String style = (String) component.getAttributes().get("style"); String styleClass = (String) component.getAttributes().get("styleClass"); ResponseWriter writer = context.getResponseWriter(); if (divOrSpan(component)) { if (("block".equals(component.getAttributes().get("layout")))) { writer.startElement("div", component); } else { writer.startElement("span", component); } writeIdAttributeIfNecessary(context, writer, component); if (styleClass != null) { writer.writeAttribute("class", styleClass, "styleClass"); } // JAVASERVERFACES-3270: do not manually render "style" as it is handled // in renderPassThruAttributes(). } RenderKitUtils.renderPassThruAttributes(context, writer, component, ATTRIBUTES); }
@Override public void encodeEnd(FacesContext context, UIComponent component) throws IOException { rendererParamsNotNull(context, component); if (!shouldEncode(component)) { return; } // Close our span element if necessary ResponseWriter writer = context.getResponseWriter(); if (divOrSpan(component)) { if ("block".equals(component.getAttributes().get("layout"))) { writer.endElement("div"); } else { writer.endElement("span"); } } }
/** * @param component <code>UIComponent</code> for this group * * @return <code>true</code> if we need to render a div or span element * around this group. */ private boolean divOrSpan(UIComponent component) { return (shouldWriteIdAttribute(component) || (component.getAttributes().get("style") != null) || (component.getAttributes().get("styleClass") != null)); }
@Override public void encodeChildren(FacesContext context, UIComponent component) throws IOException { rendererParamsNotNull(context, component); if (!shouldEncodeChildren(component)) { return; } // Render our children recursively Iterator<UIComponent> kids = getChildren(component); while (kids.hasNext()) { encodeRecursive(context, kids.next()); } }