Avoid sluggish UI – paged tables
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:
Getting ready
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.
How to do it...
Perform the following steps:
Add the following repository and dependency to
pom.xml
or download the JAR file and place it in theWEB-INF\lib
folder:<repository...