In the cell table to have tab flow working, I had to do the following: cellTable.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.DISABLED);
apart from changing the template of TextInputcell. This helped me in getting the tab flow working properly i.e. when I hit TAB the focus shifts to the next editable cell of the celltable.
But there is one more requirement in my project which says that the enter key should behave as the tab key and hence when we hit enter on a particular TextInputcell, the focus should move to the next TextInputcell of the celltable. Can anyone please help me with this?
I have tried lots of things to achieve this, but none is working. This is very urgent for the project. Please let me know, if you need more information on the issue.
cellTable.addCellPreviewHandler() did the trick for me.Now the issue is that, this method is getting called twice. Could someone explain the reasons for the handler getting called twice?