Overriding the doRemove method is not working

Hi…
I want to override the remove action. So, i implemented the following… But the doRemove method is not invoked… Do i did any mistake here…?

<actions>
    <action id="remove"/>
</actions>

<buttonsPanel id="buttonsPanel"
                alwaysVisible="true">
    <button id="removeBtn"
            action="enterpriseProjectStructuresTable.remove"
            icon="REMOVE"/>
</buttonsPanel>
RemoveAction removeAction = new RemoveAction(enterpriseProjectStructuresTable, true, "remove") {
    @Override
    protected void doRemove(Set selected, boolean autocommit) {
        showNotification("Remove Called..");  //Actually this method is not calling...
    }
};

Hello, @Narayanan

To override default behavior you should replace default action with your own. To do it just add your action to the table:

RemoveAction removeAction = new RemoveAction(enterpriseProjectStructuresTable, true, "remove") {
    @Override
    protected void doRemove(Set selected, boolean autocommit) {
        showNotification("Remove Called..");  //Actually this method is not calling...
    }
};

enterpriseProjectStructuresTable.addAction(removeAction);

Regards,
Daniil.

Thanks Daniil…
It worked as expected…