You can't use any Widgets in CellWidgets
.
However you can create your custom cell that mimics it or create an ActionCell
and add a VaueUpdater
that fires a PlaceRequest
Event.
For adding the link to a specific row you have to add a field (i..e List<String> links
) to your DTO that is rendered in your CellTable
. When you click on the "Add" button you have to modify the field of the specific DTO in your list.
MyDTO obj = // get the specific DTO from the DataProvider
obj.setLinks(LIST OF LINKS);
In the render method of your custom cell you check the field (i..e links
) and either render out the links or not.
Where does the value
data in your render method come from ?