Skip to content

Instantly share code, notes, and snippets.

@nazartm
Created February 10, 2013 13:37
Show Gist options
  • Save nazartm/4749605 to your computer and use it in GitHub Desktop.
Save nazartm/4749605 to your computer and use it in GitHub Desktop.
Simple datatable in Wicket
final BookProvider userProvider = new BookProvider();
IColumn[] columns = new IColumn[3];
columns[0] = new PropertyColumn(new Model("Author"), "author", "author");
columns[1] = new PropertyColumn(new Model("Title"), "title", "title");
columns[2] = new PropertyColumn(new Model("Release date"), "releaseDate", "releaseDate");
DefaultDataTable table = new DefaultDataTable("datatable", columns, BookProvider, 10);
add(table);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment