}
public void encodeEnd(
FacesContext facesContext, UIComponent component) throws IOException {
UIOutput output = (UIOutput) component;
Integer width = LayoutUtil.getLayoutWidth(output);
if (width == null
&& !(ComponentUtil.getBooleanAttribute(findParent(component), ATTR_INLINE)
|| ComponentUtil.getBooleanAttribute(component, ATTR_INLINE))) {
width = new
Integer(getConfiguredValue(facesContext, component, "labelWidth"));
}
LabelWithAccessKey label = new LabelWithAccessKey(component);
String forValue = ComponentUtil.findClientIdFor(output, facesContext);
createClassAttribute(component);
TobagoResponseWriter writer = (TobagoResponseWriter) facesContext.getResponseWriter();
writer.startElement(HtmlConstants.DIV, output);
writer.writeComponentClass();
writer.writeAttribute(HtmlAttributes.STYLE, null, ATTR_STYLE);
writer.startElement(HtmlConstants.A, output);
writer.writeComponentClass();
writer.startElement(HtmlConstants.LABEL, output);
String clientId = output.getClientId(facesContext);
writer.writeIdAttribute(clientId);
if (forValue != null) {
writer.writeAttribute(HtmlAttributes.FOR, forValue, null);
}
writer.writeComponentClass();