Stijn said:
Hi Martin, thanks for your quick response!
>> AFAIK jQuery unbinds all registered event listeners for a DOM element when this element is removed with jQuery method like #remove(), #replaceWith(), etc.
I think so too... However I am not sure that that is indeed the way
that Wicket removes components that are replaced by an Ajax request? I
think Wicket relies on their own code that they based on Prototype
JS ?
>> Better ask in jQuery forums.
I am not sure if that is the right place. Seems to me that Wicket is
doing the inserting / removing of the components for the page. The
statement() method lets me hook into the insertion phase to add my own
listeners (be it with jQuery or any other framework) so it seems to me
there should also be a corresponding method for the removing phase
where you can unhook/unbind events etc...
-Stijn