Reputation: 1424
JSF Datatable
<ui:repeat var="folioVO" value="#{myBean.folioList}" id="folioTable">
<h:dataTable id="promotion_dataTable" var="articlePromo"
value="#{folioVO.lstArticles}" >
...<
</h:dataTable>
</ui:repeat>
In this case, the datatable id which gets generated is : folioTable:ui repeat number:promotion_dataTable
Primefaces datatable:
<ui:repeat var="folioVO" value="#{myBean.folioList}" id="folioTable">
<p:dataTable id="promotionDetail_dataTable" var="articlePromo"
value="#{folioVO.lstArticles}" >
...
</p:dataTable>
</ui:repeat>
In this case, the datatable id which gets generated is : folioTable:promotion_dataTable
Since the repeat id ìs not getting appended in case of primefaces datatable, All the jquery /javascript gets applied to the first table.
How can this be done ..?
Thanks
Upvotes: 1
Views: 5175
Reputation: 1424
The following worked:
<p:dataList var="folioVO" value="#{myBean.folioList}" id="folioTable">
<p:column>
<p:dataTable id="promotionDetail_dataTable" var="articlePromo"
value="#{folioVO.lstArticles}" >
...
</p:dataTable>
</p:column>
</p:dataList>
Upvotes: 2