GeeCON Prague 2014*
The moose likes JSF and the fly likes  datatable population? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSF
Bookmark " datatable population?" Watch " datatable population?" New topic
Author

datatable population?

Anthony Sykes
Ranch Hand

Joined: Aug 25, 2007
Posts: 57
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 ]
Krishna Srinivasan
Ranch Hand

Joined: Jul 28, 2003
Posts: 1844

simple example :
http://www.javabeat.net/code/2007/09/jsf-iterate-row-using-datatable/


Krishna Srinivasan
Spring Tutorials, OCAJP Mock Questions, 400+ OCPJP Mock Questions
 
GeeCON Prague 2014
 
subject: datatable population?