Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Client lazy loading vs Server lazy loading with dataTable

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic