This content has been marked as final.
Show 1 reply
-
1. Re: Errai & existing GWT widgets like CellTable
csa Jan 24, 2014 1:23 PM (in response to eric.hendriks)Hi Eric,
You can use your existing CellTable and data provider with Errai UI. For example you can add a div to your HTML template
... <div id="table" data-field="table"></div> ...
and then use CellTable as the type of your @DataField (note that the data-field attribute in the template is optional in Errai 3):
@Templated public class MyForm extends Composite { ... @DataField private CellTable<Contact> table = new CellTable<Contact>(); ... }
In this way you should be able reuse your existing code.
Errai also provides its own custom mechanism for automatic binding of list data (which doesn't use GWT's CellTable):
Cheers,
Christian