1

I'm trying to display the rowCount of a lazy loaded datatable before displaying the datatable itself. The problem is that the rowCount value is set in the load callback function so the displayed value is wrong.

Is there a ajax event on datatable component which is triggered when the render or the load of the datatable is done?

3
  • Set rowCount in a bean's method annotated with @PostConstruct, just as in the example given here: stackoverflow.com/a/13973903/870122 Commented May 29, 2013 at 18:29
  • that implies to make a additional sql query... Commented May 29, 2013 at 21:29
  • No, the additional query is only necessary if you have a very large result set and you need to paginate it Commented May 30, 2013 at 6:02

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.