@Test public void testEncodeBegin() throws Exception { }
@Override public void encodeBegin(FacesContext context, UIComponent component) throws IOException { ResponseWriter writer = context.getResponseWriter(); writer.startElement("head", component); RenderKitUtils.renderPassThruAttributes(context, writer, component, HEAD_ATTRIBUTES); WebConfiguration webConfig = WebConfiguration.getInstance(context.getExternalContext()); FaceletsConfiguration faceletsConfig = webConfig.getFaceletsConfiguration(); if (faceletsConfig.isOutputHtml5Doctype(context.getViewRoot().getViewId())) { String clientId = component.getClientId(context); writer.writeAttribute("id", clientId, "clientId"); } }
HeadRenderer extends Renderer { @Override public void encodeBegin(FacesContext context, UIComponent component) throws IOException { ResponseWriter writer = context.getResponseWriter(); writer.startElement("head", component); RenderKitUtils.renderPassThruAttributes(context, writer, component, HEAD_ATTRIBUTES); WebConfiguration webConfig = WebConfiguration.getInstance(context.getExternalContext()); FaceletsConfiguration faceletsConfig = webConfig.getFaceletsConfiguration(); if (faceletsConfig.isOutputHtml5Doctype(context.getViewRoot().getViewId())) { String clientId = component.getClientId(context); writer.writeAttribute("id", clientId, "clientId"); } } }
HeadRenderer extends Renderer { @Override public void encodeBegin(FacesContext context, UIComponent component) throws IOException { ResponseWriter writer = context.getResponseWriter(); writer.startElement("head", component); RenderKitUtils.renderPassThruAttributes(context, writer, component, HEAD_ATTRIBUTES); WebConfiguration webConfig = WebConfiguration.getInstance(context.getExternalContext()); FaceletsConfiguration faceletsConfig = webConfig.getFaceletsConfiguration(); if (faceletsConfig.isOutputHtml5Doctype(context.getViewRoot().getViewId())) { String clientId = component.getClientId(context); writer.writeAttribute("id", clientId, "clientId"); } }  }
HeadRenderer extends Renderer { @Override public void encodeBegin(FacesContext context, UIComponent component) throws IOException { ResponseWriter writer = context.getResponseWriter(); writer.startElement("head", component); RenderKitUtils.renderPassThruAttributes(context, writer, component, HEAD_ATTRIBUTES); WebConfiguration webConfig = WebConfiguration.getInstance(context.getExternalContext()); FaceletsConfiguration faceletsConfig = webConfig.getFaceletsConfiguration(); if (faceletsConfig.isOutputHtml5Doctype(context.getViewRoot().getViewId())) { String clientId = component.getClientId(context); writer.writeAttribute("id", clientId, "clientId"); } }  @Override void decode(FacesContext context, UIComponent component); @Override void encodeBegin(FacesContext context, UIComponent component); @Override void encodeChildren(FacesContext context, UIComponent component); @Override void encodeEnd(FacesContext context, UIComponent component); }
HeadRenderer extends Renderer { @Override public void encodeBegin(FacesContext context, UIComponent component) throws IOException { ResponseWriter writer = context.getResponseWriter(); writer.startElement("head", component); RenderKitUtils.renderPassThruAttributes(context, writer, component, HEAD_ATTRIBUTES); WebConfiguration webConfig = WebConfiguration.getInstance(context.getExternalContext()); FaceletsConfiguration faceletsConfig = webConfig.getFaceletsConfiguration(); if (faceletsConfig.isOutputHtml5Doctype(context.getViewRoot().getViewId())) { String clientId = component.getClientId(context); writer.writeAttribute("id", clientId, "clientId"); } }  @Override void decode(FacesContext context, UIComponent component); @Override void encodeBegin(FacesContext context, UIComponent component); @Override void encodeChildren(FacesContext context, UIComponent component); @Override void encodeEnd(FacesContext context, UIComponent component);  }