wood burning stoves 2.0*
The moose likes JSF and the fly likes Issue with DataTable - how to control null data set? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Issue with DataTable - how to control null data set?" Watch "Issue with DataTable - how to control null data set?" New topic
Author

Issue with DataTable - how to control null data set?

Daniel Dausch
Greenhorn

Joined: May 02, 2008
Posts: 2
I am new to JSF and just getting up to speed. Here is the issue. I am writing an app that will primarily consist of a single page. This page consists of a form with search criteris and a data table with results. I am able to get the data table and SQL to work just fine but now I am making the page more dynamic by adding the search criteria. When the page is first displayed the data table gags, of course, because no search criteria has been entered in yet thus the data set is NULL. How do I control for this? I am using a Delegate pattern with a Controller bean as my backing bean. Here is the snippet from the page that shows the data table:

<h:dataTable border="0" cellpadding="2" cellspacing="0"
columnClasses="columnClass1" headerClass="headerClass"
footerClass="footerClass" rowClasses="rowClass1, rowClass2"
id="table2" styleClass="dataTable"
value="#{Controller.accessEventDelegate.accessEvents}"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Issue with DataTable - how to control null data set?
 
Similar Threads
JSF 1.2 Facelets - Component ID form1:dataTable:j_id101 has already been found in the view
dynamic datatable binding
data table- row selection
Need help !!!! Facing problem with display of data fetched from Database
Pagination with MyFaces (JSF Newbie)