Though this example is about a HTML table, DataGridView is not at all limited
to HTML tables. Any kind of grid can be rendered using DataGridView.
And the related Java code:
ICellPopulator[] columns = new ICellPopulator[2];
columns[0] = new PropertyPopulator("firstName");
columns[1] = new PropertyPopulator("lastName");
add(new DataGridView("rows", columns, new UserProvider()));
Example:
<table> <tr wicket:id="rows"> <td wicket:id="cells"> <span wicket:id="cell"> </span> </td> </tr> </table>Though this example is about a HTML table, DataGridView is not at all limited to HTML tables. Any kind of grid can be rendered using DataGridView.
And the related Java code:
ICellPopulator[] columns = new ICellPopulator[2]; columns[0] = new PropertyPopulator("firstName"); columns[1] = new PropertyPopulator("lastName"); add(new DataGridView("rows", columns, new UserProvider()));