0 Replies Latest reply on Oct 3, 2007 6:29 PM by Arbi Sookazian

    dataTable(s) with multiple entity beans question

    Arbi Sookazian Master

      I'm developing a JSF/Seam/EJB3 web app (using Seam 1.2.1.GA and JBoss 4.0.5.GA). I have a use case to dev that has data in a <h:dataTable> from three different DB's. Possibly only two but think multiple datasources for now.

      Does JSF/EJB3 support multiple entity beans in the same <h:dataTable>? How should I handle this? Should I use a different <h:dataTable> for each entity bean? Two of the tables are read-only (for display) and the new one on the new DB will be full CRUD.

      I'd like to use JPA entity beans as Seam works well with them rather than stored procedures. Also, there is an existing t-sql stored proc that I could use and it returns three of the columns in the datatable in the current .NET version. We will be migrating to Oracle in the future, so another reason to go with entity beans if possible.

      The Seam hotel booking example only updates/persists one entity bean when you book the hotel. Let's say there was a credit card table as well for multiple credit cards. How would you handle this now?

      any feedback appreciated. thx.