PrettyFaces and DataList Primefaces

Splash Forums PrettyFaces Users PrettyFaces and DataList Primefaces

This topic contains 1 reply, has 2 voices, and was last updated by  Christian Kaltepoth 5 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18412

    enfix
    Participant

    Hi,

    how can i use PrettyFaces with DataList Primefaces item link.

    How can i access in “var” variable ?

    If it isn’t possible, what’s the best solution for loop link ?

    Thanks

    #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

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Comments are closed.