Map eventOptions = AjaxRendererUtils.buildEventOptions(context,
tab, true);
function.addParameter(eventOptions);
StringBuffer buffer = new StringBuffer();
function.appendScript(buffer);
//TODO remove this.onclick = null
buffer.append("; return false; this.onclick = null;");
String script = buffer.toString();
writer.writeAttribute(HTML.onclick_ATTRIBUTE, activeCheck + eventCheck + script, null);
} else /* TODO if server */ {