File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "DataTable: No items found error" Watch "DataTable: No items found error" New topic
Author

DataTable: No items found error

noor asraf
Greenhorn

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 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

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

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

JSP:



Persistence.xml


Thanks,
Asraf
noor asraf
Greenhorn

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: http://aspose.com/file-tools
 
subject: DataTable: No items found error
 
Similar Threads
Trying to figure out how to use MySQL and generated @Id
How do I use message bundles from my backing bean
tracking changes in an array in a session bean
Using Visual Web JavaServerFaces to display db data in a table
JavaServer Faces - Table display in Visual Web JSF (Project woodstock)