I want to make a rich:datagrid using 2 lists from my backing bean instead of one.
So instead of :
<rich:dataGrid columns="1" width="100%" value="#{MyBean.myList1}" var="listobj1" iterationStatusVar="it" elements="10">
I want :
<rich:dataGrid columns="1" width="100%" value="#{MyBean.myList1}, #{MyBean.myList2}" var="listobj1, listobj2" iterationStatusVar="it" elements="10">
Is this possible?
MyBean.myUnion
as value and have a getter that just saysList l = new ArrayList(myList1); l.addAll(myList2); return l;
. But your use ofvar
confuses me - what do you expect it to do? – mabiMap<pojo1,pojo2>
and iterate over that. Though that's kind of a hassle with JSF, see stackoverflow.com/questions/8552804/… and stackoverflow.com/a/10934074/785663 – mabi