Table keyboard navigation

Hello all, I have just created a table inside my form. How can i navigate with keys on it (i tried but nothing happens…)? And how do I select the Table when the user is shifting by all controls controlled by the tab?

Thank you

Every table should be keyboard navigatable since Vaadin 6.4.0. It only needs the focus that can be given to it by clicking with the mouse or using tab.

For references, see the reference implementation at
Vaadin Sampler
, documentation in
Book of Vaadin
and implementation on the
Vaadin dev site
.

My table has the multiselect OFF. Is this relevant? In order to have warning icons on every component I have created a wrapped version of each component with a Layout that implements the Field interface. Is there any more methods i have to implement on this class in order to properly proxy the Table with this object and still becomes navigatable? Also another weird behaviour is that the Tab navigation jumps over the table, so it is never selected this way… and also the table is inside a portlet in liferay.

When i try to use the keys the whole page moves…

Thank you

Hi,

Does your table still have single select on? Does it have scrollbars?

If the table is
not selectable
nor
has scrollbars
then keyboard navigation is turned off and the Table cannot recieve keyboard focus.

-John

The table is selectable and has scrollbars… and still the selection wont move with the keys… :wacko:

That sounds strange…

Are you using the latest version of Vaadin?
If you aren’t then try upgrading and see if you can reproduce the issue.

If you can reproduce it then it is most likely a regression and you could
file a ticket
with a reduced test case and it will get looked at by the devs.

  • John

It is quite strange… I am using vaadin 6.4.3 so it is even stranger. I’ll try to reproduce the error elsewhere

Thanx

Hello all,

I have just tested a table using just a servlet on tomcat, and the key navigation worked, on contrary to the same conde on a Liferay’s portlet 2.0. Anyone has any idea if it is possible that by using a portlet on Liferay, the table’s keyboard navigation stops working?

Thank you

Anyone can help?

Thank you

Hi,

Your portal uses an old Vaadin widgetset. You have to update the widgetset, see Henri’s good
explanation
how to do it.

Thank you so much!

This solved my problem

Regards