views:

33

answers:

2

Hi I would like to iterate over a list of person-object and show the data in a tab per person. I tried:

<p:tabView>
<ui:repeat ...>
   <p:tab title="#{expression}>
</ui:repeat>
</p:tabView>

This is not working. Any help appreciated

Marcel

A: 

The p:tabView has to know about all of its tabs. So you really need to create tabs during view build time, not during view render time. So use c:forEach instead of ui:repeat. It's already included in Facelets and its default XML namespace is xmlns:c="http://java.sun.com/jsp/jstl/core".

BalusC