-
Book Overview & Buying
-
Table Of Contents
Vaadin 7 Cookbook
The standard Vaadin table might not be good enough for some scenarios. In case we display thousands of rows, it becomes difficult to actually find a specific row by scrolling up and down. In that case, we would rather use the classical paged table. Up-to-date info about the PagedTable add-on can be found at https://vaadin.com/directory#addon/pagedtable.
In this recipe, we will use the paged table from the repository at https://github.com/ondrej-kvasnovsky/PagedTable. It is a forked paged table, which is enhanced and contains a few fixes.
We are going to implement a paged table, as shown in the following screenshot:

Create a project in Maven or some other tool that handles dependencies easily. We are going to use the PagedTable add-on and so dependency management might be handy.
Perform the following steps:
Add the following repository and dependency to pom.xml or download the JAR file and place it in the WEB-INF\lib folder:
<repository...
Change the font size
Change margin width
Change background colour