// The Anchors
if (disabled==false)
{
String url = getUrl();
HtmlTag a = htmlWriter.startTag("a");
a.addAttribute("id", this.getId());
a.addAttribute("href", url);
a.addAttribute("target", this.target);
a.addAttribute("class", this.cssClass);
a.addAttribute("style", this.cssStyle);
a.addAttribute("onclick", this.onclick);
a.beginBody(text);
a.endTag(body);
}
else
{
// disabledTag = null
HtmlTagDictionary dic = HtmlTagDictionary.getInstance();
if (disabledTag == null)
disabledTag = dic.AnchorDisabledTag();
if (cssClass ==null)
cssClass = dic.AnchorDisabledClass();
// The value
HtmlTag s = htmlWriter.startTag(disabledTag);
s.addAttribute("class", this.cssClass);
s.addAttribute("style", this.cssStyle);
s.beginBody(text);
s.endTag(body);
}
return false;
} catch (Exception e) {
log.error("error when rendering", e);