Wednesday, August 31, 2011

Click Listener on CellTableRow


I want to handle click events on cell table rows. But i'm not able to
do this!

I tried the following code:

CellTable<MyObject> table = new CellTable<MyObject>();
final SingleSelectionModel<MyObject> model = new

table.addHandler(new ClickHandler() {

public void onClick(ClickEvent event) {
catch(Exception e){
}, ClickEvent.getType());

The problem is, that I try to get the object of the row on which I
have clicked. But on the click, the row under the mouse is actually
not selected. so the popup shows the wrong object.

How can I retreive the object under the mouse?

Kind regards,

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment