Capturing attach and detach events for table components

Hello,

I have a CustomTable with a generated column holds that a button per generated row.
I wish to listen to the attach event of this button, normally this is done using
the HasComponents.ComponentAttachDetachNotifier’s ComponentAttachListener and ComponentDetachListener.

But the CustomTable doesn’t fire a attach notifier (see CustomTable#registerComponent). it simply sets the parent.

Is there a way to still listen to the attach events of the CustomTable components?

thanks in advance,
Koen

Hi,

you can directly override attach() and detach() methods in your extension class. Those methods should be called in any case. Just remember to call the corresponding method from the super class in your implementation.

-tepi