2 Replies Latest reply on Feb 10, 2009 6:16 PM by Adrian Mitev

    Unnecessary ajax for tooltip on client mode

    Adrian Mitev Master

      This is a code from richfaces 3.3.0 demo

      <script type="text/javascript" id ="scriptj_id353">
      new ToolTip({'delay':0,'showEvent':'mouseover','hideEvent':'','hideDelay':0} ,{'onshow':null,'oncomplete':null,'onhide':null} ,"j_id353","sample1","client",false,"bottom-right",false,10,10,function(event,ajaxOptions){A4J.AJAX.Submit('_viewRoot',null,event,ajaxOptions)},{'parameters':{'j_id353':'j_id353','ajaxSingle':'j_id353'} ,'actionUrl':'/richfaces-demo/richfaces/toolTip.jsf','oncomplete':function(request,event,data){;{var _toolTip = $('j_id353').component;_toolTip.toolTipContent = $('j_id353content');_toolTip.displayDiv();}},'control':this,'similarityGroupingId':'j_id353','onbeforedomupdate':function(request,showEvent,data){;{ var _toolTip = $('j_id353').component;_toolTip.toolTip.style.display = 'none'; }}} );;
      </script>


      As you can see the generated javascript calls A4J.AJAX.submit(). That causes the load of the ajax javascript which is unnecessary in this case. Should i raise an issue for this?