1
votes

My problem is ui:repeat inside a h:panelGrid. Its a big table from a list of objects.. All objects are saved in one list.

I tried this:

<h:panelGrid columns="1000">
  <ui:repeat var="item" value="#{item.list}">
     <h:outputText value="#{item.string}" />
   </ui:repeat>
</h:panelGrid>

but inside a panelGrid the ui:repeat tag is one column for the grid. So all items are in one td tag.

Is there a possibility to get the right column count?

1

1 Answers

1
votes

In that case you can use c:forEach instead of ui:repeat. c:forEach will cause a separate UIOutputText component in components tree for each item in the list.

For more information on difference between c:forEach and ui:repeat refer here