Kazi
Kazi

Reputation: 81

How can I use jsf ui:repeat inside af:column for a list per table entry?

I would like to display a list of information per entry in the table. For example for each user, one can have multiple cell phone numbers.

The users are listed in the and I have an for the cell numbers. I would like to loop through the list of numbers per user and list them in the column for the cell phone numbers.

I have tried to add the ui:repeat in the in the following way:

<ui:repeat value="#{user.cellNumbers}" var="cellNumber">

and the table holds the user array in the following manner:

<af:table id="t1-rapb" value="#{userBean.users}" var="user">

I expected the ui:repeat to iterate through the list of numbers per user, but instead nothing appears in that column. What am I missing in order to make this work?

Upvotes: 0

Views: 70

Answers (0)

Related Questions