0

In a JSF2 framework I can't let the <c:forEach> working.

For instance, if I use the following xhtml:

<c:forEach  items="${testBackingBean.tabelle}" var="tabella">
    forEach element:<h:outputLabel value="#{tabella}"/>
</c:forEach>

<ui:repeat  value="#{testBackingBean.tabelle}" var="tabella">
    repeat element:<h:outputLabel value="#{tabella}"/><br/>
</ui:repeat>

then, only the <ui:repeat>'s results are rendered in the HTML.

I really don't know why, but unluckly I have to use the <c:forEach> becouse I need to iterate inside a primefaces element. (see c:forEach inside primefaces(e.g. p:panelgrid) inside ui:repeat)

Community
  • 1
  • 1
Antonio Ragagnin
  • 2,278
  • 4
  • 24
  • 39
  • See this: http://stackoverflow.com/questions/3342984/jstl-in-jsf2-facelets-makes-sense – Aritz Feb 11 '14 at 13:42
  • 2
    You already have a fully qualified answer to your question in your old question. Do not repost questions if you are not satisfied with the answer you get. You should provide more details describing your actual problem instead. – user1983983 Feb 11 '14 at 13:50

0 Answers0