I have 2 arraylists inside an outer arrayList on JSF as follows:
private List<ArrayList<String>> newList;
which contains
private List<String> urlx
and private List<String> titlex
and this is how I added them into newList
:
newList.add((ArrayList<String>) urlx);
newList.add((ArrayList<String>) titlex);
My xhtml code is as follows:
<p:dataTable var="car" value="#{MyBean.newList}">
<p:column headerText="Title">
<h:outputText value="#{car.xxxx}" />
</p:column>
<p:column headerText="Url">
<h:outputText value="#{car.xxxx}" />
</p:column>
</p:dataTable>
Does anyone know how I can populate Title and Url columns on my datatable using urlx and titlex lists? Urlx and titlex both contains elements that are in type of strings.