fix ticket #3121 Pagination
only with js not yet with java