@Override
	public void doRender(final WComponent component, final WebXmlRenderContext renderContext) {
		WInternalLink link = (WInternalLink) component;
		XmlStringBuilder xml = renderContext.getWriter();

		if (Util.empty(link.getText())) {
			return;
		}

		xml.appendTagOpen("ui:link");
		xml.appendAttribute("id", component.getId());
		xml.appendOptionalAttribute("class", component.getHtmlClass());
		xml.appendOptionalAttribute("track", component.isTracking(), "true");
		xml.appendOptionalAttribute("toolTip", link.getToolTip());
		xml.appendOptionalAttribute("accessibleText", link.getAccessibleText());
		xml.appendUrlAttribute("url", "#" + link.getReference().getId());
		xml.appendClose();
		xml.appendEscaped(link.getText());
		xml.appendEndTag("ui:link");

	}
@ Override public void doRender ( final WComponent component , final WebXmlRenderContext renderContext ) { WInternalLink link = ( WInternalLink ) component ; XmlStringBuilder xml = renderContext . getWriter ( ) ; if ( Util . empty ( link . getText ( ) ) ) { return ; } xml . appendTagOpen ( "ui:link" ) ; xml . appendAttribute ( "id" , component . getId ( ) ) ; xml . appendOptionalAttribute ( "class" , component . getHtmlClass ( ) ) ; xml . appendOptionalAttribute ( "track" , component . isTracking ( ) , "true" ) ; xml . appendOptionalAttribute ( "toolTip" , link . getToolTip ( ) ) ; xml . appendOptionalAttribute ( "accessibleText" , link . getAccessibleText ( ) ) ; xml . appendUrlAttribute ( "url" , "#" + link . getReference ( ) . getId ( ) ) ; xml . appendClose ( ) ; xml . appendEscaped ( link . getText ( ) ) ; xml . appendEndTag ( "ui:link" ) ; }
Paints the given {@link WInternalLink}.

@param component the WInternalLink to paint.
@param renderContext the RenderContext to paint to.