Client lazy loading vs Server lazy loading with dataTable
posted 2 years ago
1. I am doing a dataTable with paginator and the value is getting a list of Car objects already created but I what I have seen when I click on the buttons of the paginator is that is lazy loading the objects, I mean, when I render the xhtml with the datatable, if the attribute "rows" is 2, in the html generated only appears two Car objects and not all so is lazy loading from the client side, not in the server side, right?
2 .To get a lazy loading from the server side you can use for example a LazyDataModel with Primefaces, right?
3 I have done an example with LazyDataModel with Primefaces and the method load from the class LazyDataModel is called once per request and not more than once, I mean, maybe because of this class JSF called the method load only once per request because it knows it will return some calculated value? In the example http://www.primefaces.org/showcase/ui/data/datatable/lazy.xhtml they are not doing any caching