-1

Hi I'm trying to iterate through java Collection to write down its content. Unfortunately following code doesn't work:

 <c:forEach items="#{company.companyWarehouseCollection}" var="warehouse" varStatus="status" rendered="#{company.companyWarehouseCollection.size()}">
     test data
 </c:forEach>

This is strange because printing value of #{company.companyWarehouseCollection.size()} gives me positive data different than 0.

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
J33nn
  • 3,034
  • 5
  • 30
  • 46

1 Answers1

0

Try this:

<ui:repeat var="cli" value="#{beanCDI.clientes}">
      <h:outputText value="#{cli}" />
</ui:repeat>
Miltex
  • 302
  • 1
  • 13
  • 1
    Please explain the cause and the solution in clear and easy to understand terms instead of only saying "try this" along with solely a code snippet. – BalusC Nov 04 '13 at 11:52