> Exactly. Does any body know how can I reach jQuery created event
> object in first handler. I think this could be a solution...

Event delivery order is an implementation detail so you can't be
guaranteed which will fire first. However, if the a4j handler is set
by the time .ready() fires you could do something like this:

$(document).ready(function(){
   // select the element...
   var a4jclick = element.onclick;
   element.onclick = null;
   $('element').click(function(e){
      // do what you need to here...
      if ( a4j_event_handler_should_run && a4jclick )
         return a4jclick.call(this, e);
      return whatever...
   });
});

Reply via email to