• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

Issue with DataTable - how to control null data set?

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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}"
 
reply
    Bookmark Topic Watch Topic
  • New Topic