writer.startElement("a", component);
writer.writeAttribute("class", "fn url", null); // $NON-NLS-1$ $NON-NLS-2$
writer.writeAttribute("style", "font-size:90%;", null); // $NON-NLS-1$ $NON-NLS-2$
if(vals.length>=3) {
ViewHandlerEx viewHandler = (ViewHandlerEx)context.getApplication().getViewHandler();
String href = viewHandler.getResourceURL(context,vals[2]);
writer.writeURIAttribute("href", context.getExternalContext().encodeResourceURL(href), "href"); // $NON-NLS-1$
} else {
writer.writeURIAttribute("href", "javascript:void(0);", "href"); // $NON-NLS-1$
}
writer.writeText(userName, null);