Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

datatable population?

 
Anthony Sykes
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 ]
 
Krishna Srinivasan
Ranch Hand
Posts: 1874
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/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic