Iterate « Facelets « JSF Q&A





1. Iterate within     stackoverflow.com

I have a @ViewScoped bean with a List<String> containing plain HTML. I want to iterate over this list and output plain html:

<c:forEach items="#{bean.list}" var="html">
  <f:verbatim>#{html}</f:verbatim>
</c:forEach>
That snippet above works well but ...

2. How to iterate over two arrays in one ui:repeat?    stackoverflow.com

I need insert the value in the 'title' attribute but I'm wondering how do that, it should be something like:

<ui:repeat //..>
    <h:graphicImage library="images" name="#{image}" title="#{title}" />
</ui:repeat>
I ...