@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 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 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 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 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); }