Sunday, August 26, 2012

GWT Celltable - Add multiple anchors to a cell

I am trying to insert multiple anchors in a single celltable cell. This is how it would look like-
The cars column has multiple cars, each car link can be clicked to perform different actions.
I have extended a MultipleAnchorCell class from AbstractSafeHtmlCell like this-

And then I use this cell in a celltable to create a column. My User class contains comma separated values of cars in a class variable.



I am still learning GWT and it took me a while to figure this out.

Comments/feedback is welcome.

No comments: