I am new in hibernate. I have followed this tuto on youtube : https://www.youtube.com/watch?v=FttfZok91Ek
At the end of the tuto, when I want to save an object on the database, I got this error message on my navigator :
javax.el.PropertyNotFoundException: /index.xhtml @11,78 action="#{data.addMember()}": Target Unreachable, identifier 'data' resolved to null.
To help you to understand, the error is located in the index.xhtml file. here is the content of the file.
<h:head>
<title>Facelet Title</title>
</h:head>
<h:body>
<h:form>
<h:commandButton value="Add User" action="#{data.addMember()}" />
</h:form>
</h:body>
The error is on the line which contains the "commandButton". After clicking on the button in the navigator, the action is to call the "data.java" class which contains a method named "addMember()". This method will add a member on the database.
Thank you in advance. Lamine
PS : if I am not clear on the text, don't hesitate to ask me some information.