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: No items found error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "DataTable: No items found error" Watch "DataTable: No items found error" New topic

DataTable: No items found error

noor asraf

Joined: Jun 14, 2006
Posts: 4
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, 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

Joined: Jun 11, 2002
Posts: 140
can you also send your jsp file.
noor asraf

Joined: Jun 14, 2006
Posts: 4
One more thing, I am using Apache Tomcat 6.0.16.



noor asraf

Joined: Jun 14, 2006
Posts: 4
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.
I agree. Here's the link:
subject: DataTable: No items found error
jQuery in Action, 3rd edition