• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DataTable: No items found error

 
noor asraf
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying out my first JSF program using Netbeans 6.1 Visual Web that uses JPA to access a data table. The tutorial is from http://www.netbeans.org/kb/60/web/web-jpa.html, and just wondering if folks here can help me with this problem.

After I do Bind to Data to my data table, I can see that table is updated. But when I run the code, the table displays - "No items found". Does this mean that my binding between entity bean and the table doesn't work? But in the Design view, I can see the table being "updated".

My session bean:


Entity Controller class


The code above and entity controller class, UserController is from the URL I gave above - for more info or let me know for more clarification.
 
Darryl Nortje
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you also send your jsp file.
 
noor asraf
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One more thing, I am using Apache Tomcat 6.0.16.

JSP:



Persistence.xml


Thanks,
Asraf
 
noor asraf
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I managed to solve my issue: hope its of some use to other.

I seems like the toplink libraries need to be copied into Tomcat lib folder, in addition to having those along with your application. You can find the said toplink libraries at ..\NetBeans 6.1\java2\modules\ext\toplink and copy them to Tomcat\lib.

Now my queries can get executed, and the bean can talk to the DB. My table can now display the data.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic