This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JSF and the fly likes Using Visual Web JavaServerFaces to display db data in a table Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Using Visual Web JavaServerFaces to display db data in a table " Watch "Using Visual Web JavaServerFaces to display db data in a table " New topic
Author

Using Visual Web JavaServerFaces to display db data in a table

James Howerton
Ranch Hand

Joined: Mar 14, 2009
Posts: 82

Name:
The name of this question is: carbon_copy

[icode]
Hello and Thank you in advance for any assistance.
[/icode]



Purpose:



The purpose of this code is create a desktop app and web app. The web app has the destop apps library. Create a web page to display the content table (please find splashbookdb.sql attached).





Question:



My question concerning this code is why the data is not displaying in page. The table is linked to the db and the headers are correct in the deployment.




Functionality:



The actual functionality of this code is: the program runs but it seems the PK is not working in the content.java.
This project is modeled after the project at
Using Java Persistence API Within a Visual Web JSF Application

: http://www.netbeans.org/kb/60/web/web-jpa.html
It is almost a carbon copy of this program except for the data (As far as I can tell).





errors:



The errors related to this code is: table displays correct but no data.







Description



Code description:Content.java (Entity class)







Description



Code description:MPLController.java (controller for the entity content)






Description



Code description: persistence.xml







Description



Code description:sessionBean1.java





Thanks again.
-ceyesuma





Solution:



The solutions related to this code are





Note:



Note:




James Howerton
Ranch Hand

Joined: Mar 14, 2009
Posts: 82
Here is the splashbookdb.sql as mentioned above.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56529
    
  14

Please take the time to choose the correct forum for your posts. This forum is for questions on JSP. For more information, please read this.

This post has been moved to the JSF forum.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Using Visual Web JavaServerFaces to display db data in a table
 
Similar Threads
jsf navigation and database connection
Trying to figure out how to use MySQL and generated @Id
Null POinter Exception
Creating a MySQL table and Entity from Database.
tracking changes in an array in a session bean