I can successfully use the wicket built-in ajax support. Everytime the ajax link is "mouseovered", an ajax event is sent to the server for processing.
We have attached a static javascript to the "mouseover" event attribute by overridding the method of AjaxEventBehavior: protected CharSequence getEventHandler() { CharSequence eventHandler = super.getEventHandler(); String s = eventHandler.toString() + "alert('to be replaced...')"; return s; } as a result, the mouseover event attribute is something like: var wcall=wicketAjaxGet('?wicket:interface=:1:cart::IBehaviorListener:0', function() { }.bind(this), function() { }.bind(this));alert('to be replaced...') Can we control if the ajax event is only "sent" to the server for processing for some "conditions", but still run my static javascript as well? e.g. if the ajax request is sent for 1 time, it will not be sent again, and my static javascript is run Let me know if my question is not clear enough. -- View this message in context: http://www.nabble.com/ajax-javascript-control-tf3981581.html#a11303150 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user