Hello,

I am troubling with the combination of two HibernateEntityDataSource. I am
trying to show the elements of two tables in only one grid. So, I am doing:

HibernateEntityDataSource<CustomerContact> list1 =
HibernateEntityDataSource.create(session,CustomerContact.class, resources);   
HibernateEntityDataSource<ProviderContact> list2 =
HibernateEntityDataSource.create(session,ProviderContact.class, resources);

It is working properly. However when I try to mix both, list1 and list2 the
problems start. 
I am doing the next:

List<CustomerContact> listCustormer = list1.getData();
Iterator it2 = list2.getData().iterator();    -->it is not working
            while(it2.hasNext())
            {   
                listCustorme.add((CustomerContact) it2.next());
            }

When this is done, I have to convert the list listCustomer to a
GridDataSource, and it is another problem for me.

Sorry about my English and very thanks in advance!!

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Combine-two-HibernateEntityDataSource-tp5469218p5469218.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to