Link in Table : Right Click?

Hi,

I’m experimenting with some navigation things for a prototype; I have a table, and I want the user to be able to “drill down” to things in the table - either in the current (application) window, or to launch a new one.

I’ve come to the conclusion that if you want the user to be able to choose between opening in the current window, or in a new one (or, more realistically nowadays, a new tab) - the best way is to use a Link, which generates an caption.

I’ve successfully created a scenario where a single link outside of the table changes, based on selection. However, I’m not convinced it’s the most usable setup in the world - you have to select a an item in the table, move the mouse over to the link, and either left or right click it.

If the link is inside the table, though, there should be less user mouse-movement.

Cool.

It’s easy enough to do - add a generated column, which returns a Link component.

However : you can’t right click on the link inside the table : or rather, you can, but you don’t get the browsers context menu. I am pretty sure this is so that you can register your own right click menu for tables (we’ve done that in another app) - I imagine there’s a gwt-level event handler coming into play here.

Is it possible to disable this, so that I get the browser context menu when right clicking on table?

Cheers,

Charles.

To me this sounds like a bug, please submit a ticket for it.

Done :
Ticket #5924

Cheers!

I’ve experienced this problem too. I don’t know why Table (or any other component) should sink such events on client side when there is no listener attached for them (or actions for context menu).

The same goes for layouts as components inside Table - they provide listeners, but prevent Table item selection even when there is no listener registered for this particular layout.