Posted Wednesday, October 3, 2007 @ 11:14:19
I have a quicktable in use, and I have added as a DBTableEventListener a class which extends DBTableEventListener and overrides the method public void afterRowSelectionChange(int fromRow, int toRow).
I am doing this so that I can ask the controller in my own MVC controller to control certain actions which may be enabled or disabled, depending on which row or rows are selected.
When multiple rows are selected (using ctrl + mouse click) I have found that my overridden method, afterRowSelectionChange(int fromRow, int toRow). only runs on the first click, and on subsequent clicks if the row has a lower row number (i.e. nearer the top of the table) than the initially selected row. But if a row lower down the table than my originally selected row is selected the method is not run.
So, for example, if I have a 10 row table, and the first row I select is row 5, then the method runs.
If I then add , say, row 8 to my selected set (using ctrl + click) it does not run, but if I add row 3, it does run.
So my questions are:
1) Is this method meant to fire for every selection in multiple selections
and if not
2) Is there a method in DBTableEventListener that will fire for all selections when making multiple selections.
I am using jdk1.6.0_01
Your help would be appreciated.
Kind regards
Marina James