File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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: 1850

simple example :

Krishna Srinivasan
OCAJP 7/8 Exam, 400+ OCPJP Mock Questions
I agree. Here's the link:
subject: datatable population?
It's not a secret anymore!