I got the following error when I tried to use the code that Ngoc Sinh gave me above:
logServletError SRVE0293E: [Servlet Error]-[Faces Servlet]: org.apache.jasper.el.JspPropertyNotFoundException: /index.jsp(60,7) '#{transactionBean.acctTypes}' The class 'pagecode.TransactionBean' does not have the property 'acctTypes'.
I have an architectural question here. I have a DAO interface, DAO tier code, Service interface, Service tier code, Managed Bean code, and a BOM tier. My service interface is used by the managed bean code to call the code to populate the dropdown list AccountTypes. But I get the error above because I do not want the JSF code to call the code in the DAO level directly. The property of acctTypes sits in the DAO level. Do I have to define the acctTypes property in the service interface in order for JSF to see it or does it have to go into the managed bean?
Here is my managed bean transactionBean:
Any help/direction would be greatly appreciated. Thanks.