Re: PrettyFaces and DataList Primefaces

Splash Forums PrettyFaces Users PrettyFaces and DataList Primefaces Re: PrettyFaces and DataList Primefaces

#22584

I don’t know Primefaces’ dataList component. It sounds like it is something similar to a dataTable? In this case it should work exactly like for dataTable. Something like:

<h:dataTable var="user" value="#{userListBean.list}">

<!-- .... -->

<h:column>
<pretty:link mappingId="editUser">
<f:param value="#{user.id}" />
Edit
</pretty:link>
</h:column>

</h:dataTable>

Another option would be to use <ui:repeat>:

<ul>
<ui:repeat var="user" value="#{userListBean.list}">
<li>
<pretty:link mappingId="editUser">
<f:param value="#{user.id}" />
Edit
</pretty:link>
</li>
</ui:repeat>
</ul>

Christian