• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

datatable population?

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a page with a datatable in a CRUD scenario. I need to populate the datatable when the page is loaded. Where should this population occur? In the constructor? Is there another place? I have not been able to find any examples of this scenario? Can someone point me in the right direction and/or provide some examples? Do I have to actually get the data from another page and put it in the session and then send someone to this page? That seems to be a little much? Am I limited to only letting the page load to an empty datagrid and forcing the user to press a button after the page loads? Is the bean constructor the only place the loading can occur?
[ August 25, 2007: Message edited by: Bear Bibeault ]
 
Ranch Hand
Posts: 1880
Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
simple example :
http://www.javabeat.net/code/2007/09/jsf-iterate-row-using-datatable/
 
He's my best friend. Not yours. Mine. You can have this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!