Hi. I'm newbie here and also in
jsf.
Recently, I have problem with my login page. I have database with table customer. What I want to do is when user enter username and password, it will go to another page. But, the problem is how to retrieve data from database. I have created persistence, but I still cant find the way how to retrieve data from database. Can someone help me? I'm using netbean for jsf.
This is the code generated by netbean when I choose "Entity Classes From Databse".
Just say I want to retrieve only one customer name. Can I simply write <h:outputText value="#{Customer.name}"> like this?