Hello everyone, I just registered on this website, but feels like I have been a part of it for years (having referred to it and the numerous forums, among other interesting features and services, many many times). The wealth of experience of members of this website is mind-blowing!
Having said that, I have to confess I am struggling with a web app I am developing for the company I work for. Before I start, forgive me for any terms I use incorrectly - I am just learning this whole JPA/JTA/Hibernate persistence process. This web app is being developed using Eclipse Kepler SR1,
JBoss EAP 6.2, JPA 2.1, Hibernate 3.5 (JTA) and Primefaces 3.5, with an Oracle database back-end.
The problem I am running into is with a selectOneMenu dropdown that is not getting populated with a list of countries from the database. When I load the web page the dropdown box is empty. Clicking on the dropdown arrow does nothing - no errors on the console, no activity (at least that I can see).
I am able to ping the database in the Database Development tool. Also, if I happen to misspell or enter an invalid column name next to a @Column annotation I get an error message indicating that no such column exists in the table. This
leads me to believe there is a successful link with the database. However, I am sure there are multiple issues with either improper use of JPA, or with the whole persistence process in my code.
Here is my setup (please note that some information has been left out, for security reasons - if this poses a problem with getting help I will understand):
Persistence.xml:
Standalone.xml:
Backing Bean:
DAO class:
ManagedBean:
JSF (Please note that this is only the code for the dropdown box. Also, the ajax action is commented out for now - it isn't part of the problem, but is still "under construction" to be completed once this problem is resolved.):
Thank you for your time, and for being brave enough to review my code!!