if(event.startsWith("on")){
event = event.substring(2);
}
Map eventsMap = new HashMap();
eventsMap.put(new JSReference("event"), event);
eventsMap.put(new JSReference("onshow"), toolTip.getOnshow());
eventsMap.put(new JSReference("oncomplete"), toolTip.getOncomplete());
eventsMap.put(new JSReference("onhide"), toolTip.getOnhide());
eventsMap.put(new JSReference("delay"), new Integer(toolTip.getDelay()));
JSFunction function = AjaxRendererUtils.buildAjaxFunction(component, context);
JSReference ref = new JSReference("ajaxOptions");
function.addParameter(ref);
String ajaxFunc = function.toScript();
Map ajaxOptions = buildEventOptions(context, toolTip);