}
@Override
protected void doEncodeBegin(ResponseWriter writer, FacesContext context, UIComponent component) throws IOException
{
UILink link = (UILink) component;
String url = link.getUrl();
writer.startElement(HTML.ANCHOR_ELEM, link);
if (url != null && !link.isDisabled())
{
writer.writeAttribute(HTML.HREF_ATTR, url, HTML.HREF_ATTR);
}
if (link.getId() != null)
{
writer.writeAttribute(HTML.ID_ATTR, link.getClientId(context), HTML.ID_ATTR);
}
HTML.renderHTMLAttributes(writer, link, HTML.ANCHOR_PASSTHROUGH_ATTRIBUTES);
if (link.getValue() != null)
{
writer.writeText(link.getValue(), null);
}
}