Hi every body,
I a J2EE newbe developper, I downloaded the “libraryweb” JSF application and it was running without effective database (there was a java classe simulating the database). And I tried to modify the code to access a MySql database containing a “book” table. I used hibernate as a mapping framwork, i developped and tested a classe that offers data access and was well running. But the problem is that the hole “libraryweb” JSF application with data access doesn’t work very well.
It reads and displays all books in the table “book” of the database “librarybase”.
It deletes a book from the table.
But when creating or saving a book this Error Message appears : “id” : convrsion error occured.
The code portion responsible for the error in editBook.jsp :
<h:inputHidden id=”id” value=”#{bookBean.id}”/>
For information the id attribute is a java.lang.long in the classe book called in this jsp.
Help please, thank you in advance.