protected void encodeHtmlOutputLabelBegin(final FacesContext context, final HtmlOutputLabel htmlOutputLabel) throws IOException { final ResponseWriter writer = context.getResponseWriter(); writer.startElement(JsfConstants.LABEL_ELEM, htmlOutputLabel); RendererUtil.renderIdAttributeIfNecessary(writer, htmlOutputLabel, getIdForRender(context, htmlOutputLabel)); final String forAttr = htmlOutputLabel.getFor(); if (forAttr != null) { final UIComponent forComponent = htmlOutputLabel .findComponent(forAttr); if (forComponent == null) { throw new IllegalStateException("for Component [" + forAttr + "] does not found"); } final String forClientId = getIdForRender(context, forComponent); RendererUtil.renderAttribute(writer, JsfConstants.FOR_ATTR, forClientId, null); } renderRemainAttributes(htmlOutputLabel, writer, ignoreComponent); final String value = ValueHolderUtil.getValueForRender(context, htmlOutputLabel); writer.writeText(value, null); }