Have you ever needed ajax pagination support to ui:repeat component? Well, we did when working on a client’s application. The requirement was displaying data with pagination support and no specific markup like tr, td, li. DataTable, DataGrid and DataList components render each data in collection with specific markup separators so we needed our own custom display similar to ui:repeat. As ui:repeat has no paginator, we’ve enhanced PrimeFaces DataList with a new type called “none”.
Content is up to the page author to define which brings full control over the generated markup. As datalist also provides ajax pagination, header facet and more, it is possible to further customize the content. One pending enhancement is adding varStatus option.
See PrimeFaces Labs for a live demo!