• Post Reply Bookmark Topic Watch Topic
  • New Topic

Client lazy loading vs Server lazy loading with dataTable

 
Jorge Martinez
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hy,


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

Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!